Windows Server 2008 R2 Unable to change computer name using netdom command after cloning VM
-
Tuesday, May 31, 2011 2:31 PMI've copied/cloned a VM with Windows Server 2008 r2 Enterprise successfully, but for some reason I cannot successfully change the name of the new VM. I'm logged in as Administrator and using the netdom command as Administrator, but I keep getting an error about logon failure, an unrecognized user name or bad password..what am I doing wrong??
All Replies
-
Tuesday, May 31, 2011 3:28 PMModerator
Hi,
Did you install the core installation of Windows Server 2008 R2? If not, can you change the computer name in Control Panel\System\ Advanced system settings \ Computer name?
By the way, if you want to change the computer through command line, you can use the following method.
To rename the server
1. Determine the current name of the server with the hostname or ipconfig command.
2. At a command prompt, type: netdom renamecomputer <ComputerName> /NewName:<NewComputerName>
3. Restart the computer.
For more information, you can refer to:
Server Core Installation Option Getting Started Guide
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=B16F4DC4-A3D3-4DC7-AA51-A1C6728B217A
In addition, if you want to clone a virtual machine, it’s better to sysprep the VM and then export it.
Exporting/Cloning Virtual Machines on Hyper-V with Windows Server 2008 R2
Parent or child disk sysprep?
Vincent Hu
- Marked As Answer by Vincent HuModerator Tuesday, June 07, 2011 3:30 PM
-
Tuesday, May 31, 2011 4:27 PMTry dropping the cloned machine from the domain then rebooting it, then logging on as a local admin rename the computer then reboot again. Then log on as a local admin and re-join to the domain.

