Computer name with sysprep



I am using sysprep to make images for deployment and would like to use
sysprep.inf file to automate the setup when the computer reboots. We have a
naming convention for our computers and the computer name is set in the bios
on each computer.

Is there a way to retrieve information from the bios and use it in the
sysprep.inf file?



Oli Restorick [MVP]

Check out compname at

You can let SysPrep generate a random name and then run compname in your
cmdlines.txt file. Then script a reboot and join the domain with netdom,
followed by another reboot.

I'm not aware of any easy method (apart from, perhaps using Windows PE) to
get in early enough to change the answer file before it is parsed.



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question