NETDOM RENAMECOMPUTER

Renames a computer. If the computer is joined to a domain, the computer object in the domain is also renamed. Do not use this command to rename a domain controller.

netdom renamecomputer Computer /newname:NewName
[/userd:User [/passwordd:[Password | *]]]
[/usero:User [/passwordo:[Password | *]]]
[/force] [/reboot[:TimeInSeconds]]
[/securepasswordprompt]

Get Active Directory® Administrator's Pocket Consultant now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.