Windows‎ > ‎

Active Directory

To rename a domain controller (must be at least 2003 level)

  1. Open Command Prompt.

  2. Type:

    netdom computername CurrentComputerName/add:NewComputerName

    This command will update the service principal name (SPN) attributes in Active Directory for this computer account and register DNS resource records for the new computer name. The SPN value of the computer account must be replicated to all domain controllers for the domain and the DNS resource records for the new computer name must be distributed to all the authoritative DNS servers for the domain name. If the updates and registrations have not occurred prior to removing the old computer name, then some clients may be unable to locate this computer using the new or old name.

  3. Ensure the computer account updates and DNS registrations are completed, then type:

    netdom computername CurrentComputerName /makeprimary:NewComputerName

  4. Restart the computer.

  5. From the command prompt, type:

    netdom computername NewComputerName /remove:OldComputerName

To uninstall active directory

C:\> dcpromo
Comments