Jump to content

Incrementing custom naming


Recommended Posts


I'm fairly new to imaging & deployment configuration, hoping someone can advise me a bit.

How might I approach getting SmartPE to use a vbs to update SmartDeploy.xml? (//identification/custom_naming_scheme)

In my current (MDT) environment we use an incrementing computer naming scheme of PC-xxxxx.

Our MDT runs a vbs that:

1. queries a SQL value (the last PC-# that was issued)

2. updates that value to increment by +1

3. sets the new value as OSDComputerName for LT to use

I've modified the script so that step 3 now updates an xml file instead, but am unsure how to implement it with SD, bake it into the PE iso.
Link to comment
Share on other sites


If i'm understanding correctly, you won't need to update the SmartDeploy.xml and run your task as a pre-image task. Here is a good forum post regarding tasks:



SmartDeploy Support

Link to comment
Share on other sites


I added an "After image is applied" task that ran the vbs and seemed to successfully update the \Windows\Panther\unattend.xml file in the freshly imaged drive ... this is what's used by sysprep when the imaged OS boots right?

But it didn't take, as if something reverted/overwrote it again after my process ... the computer booted up with the old, pre-task name, derived from SmartDeploy.xml.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

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

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.


  • Create New...