I've got a WDS environment setup that has been working beautifully for a long time now. We want to make a small change to the way PC are named during the deployment phase. Currently, WDS automatically names the machine with the user name, and then some random characters.


This was fine, but we now would like to change it something like:


Can you use a text string, plus an asterisk in the unattend.xml file to get this behavior? So it would look similar to this:


If not, what is a good way to do this? Are additional scripts required?


WDS uses a COMPUTERNAME environment variable for managing how this is set up.

This is set on the deployment server properties, under the 'AD DS' tab. The 'Format' line is what dictates what the computer name will look like.

It sounds like you want to replace the %Username- with COMPANYNAME-

You can also use the unattend files to set this up as well, depending on your environment's complexity.

  • Exactly what I needed to know. I knew it was in there somewhere! – Lee Harrison May 26 '15 at 21:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.