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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.