Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Computer name

Status
Not open for further replies.

simdan42

Programmer
Jul 17, 2002
118
US
I need to get the current computer name from the registry. Then store that value. Delete the first few characters from
the value and add more charater to the value and then set the new value as the computer name.(ie Current
Computer name = 1234Smith. I need to remove the 1234 and replace it with ABCD) I wish to do this via a script. I have many machines to change the name to a new naming convention.

 
What OS?
Are your computers in a Domain, Workgroup or standalone?
 
Windows XP / Windows 2000. We are on a domain.
 
Change hostname should be rather easy, but computername could be harder, since the domain has the name there too... have a look at the ADMT tool there you can rename computer accounts batch wise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top