O'Reilly logo

Active Directory Cookbook by Robbie Allen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3.7. Renaming a Domain Controller

Problem

You want to rename a domain controller.

Solution

Windows 2000 Active Directory

To rename a domain controller, you must first demote it to a member server. You can then rename it and then promote it back to a domain controller.

Windows Server 2003 Active Directory

> netdom computername <CurrentName> /Add:<NewName>
> netdom computername <CurrentName> /MakePrimary:<NewName>

Discussion

There is no supported means to rename a Windows 2000 domain controller in place. That is why you have to fake it by demoting the server before doing the rename. Before you demote the server, you should transfer any FSMO roles. Alternatively, you can let dcpromo transfer the roles during demotion, but you should check afterwards to verify which server(s) the role(s) were transferred to. Likewise if the domain controller is a global catalog server, ensure another global catalog server is available to cover for it.

Renaming a domain controller is a new feature of Windows Server 2003. A new option has been added to the netdom utility to allow an alternate computer name to be associated with a computer in Active Directory. Once you’ve added a new name, you can then set that name to be the primary name, thereby renaming the computer. The old name effectively remains with the domain controller until you remove it, which can be done using the netdom computername /Remove:<Name> command. You should reboot the server before removing the old name. The old names are stored in the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required