Jump to content


Bever87

Auto-assign computername in OSD Deployment with VB Script

Recommended Posts

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

 

Share this post


Link to post
Share on other sites

ActiveX component can't create object: ADODB.Connection

 

 

have you added any connection capability in your boot wim ? you need to add the optional component (Winpe-mdac) ?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I would go with the MDT route as well. Mikael Nyström has made several blog posts/videos about this. Seems easy enough. Using MDT also enables you to test deployments without actually imaging computers.

 

http://deploymentbunny.com/2011/04/27/quick-and-dirty-testing-customsettings-ini-variables-in-mdt/

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.