PowerShell
$(gwmi win32_computersystem).Rename(“PC-NewName”)
Rename-Computer -NewName PC-NewName -Restart
Invoke-command -computer PC-OldName -script {rename-computer PC-NewName; restart-computer}
Commands
WMIC ComputerSystem where Name=”PC-NewName” call Rename Name=NewName
netdom renamecomputer %computername% /newname:PC-NewName /userd:domain\adminaccount /passwordd:password /reboot:10
Notes
Rename-Computer