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>"
netdom.exe renamecomputer %computername% /NewName:<new name> /userd:domainuser /passwordd:*
wmic.exe computersystem where name="%computername%" rename name="<new name>"
Leave a Reply
You must be logged in to post a comment.