IT Management > IT management Forums > IT Management Planning and Technology > Script to change computer name in domain
Ask a questionAsk a question
 

AnswerScript to change computer name in domain

Answers

All Replies

  • Thursday, June 11, 2009 8:45 PMMeinolf WeberMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,

    is it one machine or multiple? Or is it when a machine from an image is installed and you like to rename it? If the last option you have to use sysprep to not only change the name, also some additional information like the SID and some more.
    Best regards Meinolf Weber Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights.
  • Friday, June 12, 2009 12:50 PMKevin RemdeMSFT, OwnerUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    You can use the commandline tool NETDOM to do that.  Once you understand the command parameters, it shouldn't be too tough to create a script to do multiple machines (if that's your intent).

    http://technet.microsoft.com/en-us/library/cc788029.aspx

    Kevin


    Kevin Remde US IT Evangelism - Microsoft Corporation http://blogs.technet.com/kevinremde
  • Friday, June 12, 2009 3:11 PMbubba64 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Ok, It was a machine from image.  They ran ghost walk on it.  Now a few years later we want to rename some of our remote computers about 50
  • Friday, June 12, 2009 3:44 PMbubba64 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks