For any reason, if you need to rename Windows computer name from the command line, here's the command:
WMIC computersystem where name="%computername%" call rename name="NewComputerName"
Example output:C:\WINDOWS\system32>WMIC computersystem where name="OldComputerName" call rename...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.