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. 

0 Comments   [ + ] Show comments

Answers (4)

Posted by: SMal.tmcc 11 years ago
Posted by: dugullett 11 years ago
Red Belt

Have you seen this? http://www.kace.com/support/resources/kb/article/How-to-rename-a-computer-and-join-it-to-a-Windows-domain-Image-Deployment

What switches are you currently using with WSname?

Posted by: Roonerspism 11 years ago
Second Degree Brown Belt

Alternatively you can use sql queries to do the same thing with this 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.

Posted by: JonathonV 11 years ago
Blue Belt

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

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ