Changing the computername

Domain joined

netdom.exe renamecomputer %computername% /NewName:<new name> /userd:domainuser /passwordd:*

Non-Domain joined

wmic.exe computersystem where name="%computername%" rename name="<new name>"

Comments

Leave a Reply