Rename Windows 2008 Server core

netdom renamecomputer Old_Name /newname: New_Name


WMIC ComputerSystem Where Name="%COMPUTERNAME%" Call Rename Name=" New_Name "


X!iR said...

netdom renamecomputer OldComputername /NewName:NewComputerName

ale1v said...

Right, my fault. :)

Mohd Wasim said...

we can use netdom in a little different fashion like
netdom renamecomputer %computername% /NewName:CoreSrv /Reboot 0
here we don't have to remember current computer name as we are using %computername% as a parameter which will automatically take the current name and /reboot can be specified in seconds, 0 will reboot instantly.

Recent Posts