Changing The System Name (Domain and non Domain computer account)
Netdom renamecomputer %computername% /NewName:new-name /UserD:domain-username /PasswordD:*
Netdom doesn’t currently provide a way to rename a non-domain joined computer.
It is a bit of a hassle to join and unjoin from a domain just to rename the computer.
WMI is the solution to this one. Using WMIC you can rename the computer using:
wmic computersystem where name=”%computername%” rename name=”new-name”
The one limitation to this is that it must be run while logged on with the default administrator account. You must also REBOOT for the changes to take effect
If you want to view if this is successful just use “systeminfo” and if should display the computer name for you
Example Shown, I renamed my system before joining to my domain.


