Name Windows 7 system by Service Tag (Serial Number) at Deployment?
Currently I have the unattend naming the computer randomly and also joining it to the domain. As a postinstall taskI am using WSName to change the name in the domain to the systems Service Tag (or Serial Number).
I am having an issue with this process. Most of the time it works great. However, with a small number of machines it fails to rename the machine in the domain, and when you attempt to rename it manually it throws an error that the machine doesn't actually exist in the domain.
The workaround so far has been to manually unjoin and rejoin the offending machines. I would like to figure out an alternative way of doing this and hopefully avoid whatever issue is currently bugging up this process.
Is it possible to name the system by its service tag during one of the unattend passes? Google searches have revealed that this is readily possible when deploying with MDT, but I am using the K2000.
Answers (4)
Alternatively you can use sql queries to do the same thing with this script.
http://www.itninja.com/question/name-machines-via-k1-with-k2-post-install-script
We've been doing it for ages now. We have different actions using this method, from naming the machine with the location and serial to naming with the owner username or aid tag. This makes your scripts very robust.
You can use wsname (as mentioned above) however there are many options to use. If you are having issues with domain joined PC's you could use /RCID for a pc that is joined to the domain in conjuntion with /deleteexisting to remove old computernames prior to renaming a pc to the same name.
Wsname also has a switch to add the computername to an unattend if you have a sysprepped image using /unattend switch