Search This Blog

Thursday, October 9, 2008

To rename a computer attached to a Domain using command line

Requirement: Administrator pack for Windows Server 2003


To rename a computer attached to a Domain:


C:\Users\Administrator> netdom renamecomputer SAI /newname:SAIBABA /userD:hq\Administrator Passwordd:**** /usero:hq\Administrator /passwordo:***** /reboot

This renames the computer and reboots for the changes to take effect.

The syntax is

netdom renamecomputer /newname: /userD: Passwordd:domainpass /usero: /passwordo:localpass /reboot

In the above, if you enter “*” instead of the password then it will prompt for the respective user password.

The UserD & PasswordD options allows to make connection to the domain controller

The UserO & passworO options allows to make connection to the local host. This could be the same as the Domain Admin.

No comments: