Skip to content

Auto-assign computername in OSD Deployment with VB Script

Featured Replies

Hi everyone,

 

I am trying to deploy windows 7 computers in our company environment and they should get dynamic names.

This is how it should work:

 

- We have an Active Directory OU assigned to deployed workstations. I have 2 dummy computers in here just to test the setup, it looks like this atm.

 

41fo6.png

 

- Next I have a script which reads the ou and generates the new computername

 

5am55c.png

 

- I created a package with the script and distributed it to the DP

 

- Then i created a new task in the task sequence who performed a command line:

 

107n8fc.png

 

- when i am deploying I get the following error message:

 

2gxoj1x.png

 

2psiw48.png

 

Is there anyone that knows if this is possible to do, to start with. If my script is having errors in it, or what I am doing wrong? :)

 

Kind regards,

 

Thomas

 

  • Author

I made it work, he is loading in my script in the task sequence, but i'm getting the next error:

 

ibayky.png

Why go through the custom VBScript route? There is a good method built into MDT for naming machines and adding it to an OU structure. Create a customsettings.ini package from MDT, and use this naming convention. I imagine there is a walk through, we have had this in our environment for a long time and it works quite well.

 

 

post-6999-0-23876400-1382974491_thumb.png

post-6999-0-62972900-1382974593_thumb.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.