Windows Management and Scripting

A wealth of tutorials Windows Operating Systems SQL Server and Azure

  • Enter your email address to follow this blog and receive notifications of new posts by email.

    Join 721 other subscribers
  • SCCM Tools

  • Twitter Updates

  • Alin D

    Alin D

    I have over ten years experience of planning, implementation and support for large sized companies in multiple countries.

    View Full Profile →

How to Rename a Windows 2008 Domain

Posted by Alin D on October 22, 2010

Recently i have written a  good article on his site describing the steps for renaming a Windows Server 2008 domain controller. Here I’m going to describe a related but different task, renaming the actual domain. Renaming a domain is something you don’t want to find yourself having to do very often, or ever, in a production environment. However I have found the need to do it several times in a test setup; the process is similar to renaming a Server 2003 domain and isn’t as difficult as one might think.

Microsoft has pages and pages of documentation covering the ins and outs of domain renaming, and I recommend using those (see link at end of this post), especially when attempting this on a production domain. However the steps below will give a good overview and should be sufficient for testing purposes. First, the major prerequisites for a domain rename in a simple single domain forest:

  • Enterprise Administrator credentials are required.
  • The domain should be well formed and healthy.
  • The forest functional level must be Windows Server 2003 or 2008, and all DC’s running at least Server 2003.
  • A DNS zone for the new domain must be in place.
  • The Rendom and Gpfixup tools must be copied to a domain member workstation to perform the rename operations. The operations should not be initiated from a domain controller.
  • See the TechNet link below for details on requirements if you’re using DFS redirection, roaming profiles, running a CA, or Exchange Server.

The domain rename is performed using the Rendom tool, which is installed with Active Directory when running dcpromo. Once this process is started, you must ensure that no changes are made to the forest configuration until complete. The steps are as follows.

1. Run “rendom /list” to generate a state file named Domainlist.xml. This file contains the current forest configuration.
2. Edit the state file, changing the <DNSname> and <NetBiosName> fields to the desired values for the new domain name.
3. Run “rendom /showforest” to show the potential changes; this step does not actually make any changes.
4. Run “rendom /upload” to upload the rename instructions to the configuration directory partition on the domain controller holding the domain naming operations master role. The instructions are then replicated to all other DC’s in the forest. Once replicated to all DC’s, the rename instructions are ready to be carried out. You can force replication by running the “repadmin /syncall” command.
5. Run “rendom /prepare” to verify the readiness of each domain controller in the forest to carry out the rename instructions. This should contact all DC’s successfully and return no errors before proceeding.
6. Run “rendom /execute”, this verifies readiness of all DC’s, then preforms the rename action on each one. There will be a service interruption during this period. Upon completion domain controllers will be rebooted. If an error occurs on a DC during this phase, the entire transaction is rolled back. Any DC’s that don’t complete successfully after this phase must be demoted and removed from service.
7. Run “gpfixup” to refresh all intradomain references and links to group policy objects.
8. Reboot client computers and member servers twice to obtain new domain name. Because the GUID’s of the domain remain the same during the rename process, domain membership is not affected. The DNS suffix of the client machines will also be updated assuming the default option of “Change primary DNS suffix when domain membership changes” is enabled.
9. Run “rendom /clean” to remove references of the old domain name from Active Directory.
10. Run “rendom /end” to unfreeze the forest configuration and allow further changes. This was frozen during the rendom /upload step.

Should you have any problems with clients recognizing the new domain name, you can remove them by running “netdom remove <machine-name> /Domain:<old-domain> /Force”, rebooting, then rejoining the new domain. Once the rename is complete, there is one final change required on domain controllers. The DNS suffix of a DC is not changed as part of this process. This must be changed manually or the DC’s will have a DNS suffix that differs from the AD domain name.

For further details on renaming Server 2008 domains, reference this TechNet article:http://technet.microsoft.com/en-us/library/cc794869.aspx

Sorry, the comment form is closed at this time.