Rename an Active Directory domain

The following procedure shows you how to rename an Active Directory domain.

1. Open a command window in “administrator” mode and enter the following command which will generate a Domainlist.xml file :

rendom /list

2. Edit the xml file, changing your old domain to the new one:

<?xml version ="1.0"?>
<Forest>
	<Domain>
		<!-- PartitionType:Application -->
		<Guid>0731e77c-1b86-4dd4-949a-191f75acab61</Guid>
		<DNSname>ForestDnsZones.rdr-it.com</DNSname>
		<NetBiosName></NetBiosName>
		<DcName></DcName>
	</Domain>
	<Domain>
		<!-- PartitionType:Application -->
		<Guid>664c9a1d-a68b-490b-8e6b-f3504998d914</Guid>
		<DNSname>DomainDnsZones.rdr-it.com</DNSname>
		<NetBiosName></NetBiosName>
		<DcName></DcName>
	</Domain>
	<Domain>
		<!-- ForestRoot -->
		<Guid>30a6dbd6-5032-461b-afd5-afad708ccbca</Guid>
		<DNSname>rdr-it.com</DNSname>
		<NetBiosName>RDR-IT</NetBiosName>
		<DcName></DcName>
	</Domain>
</Forest>

In the file, I modified rdr-it.intra to rdr-it.com.

3. Enter the following command to verify the match:

rendom /showforest

4. Enter the following command to load the file:

rendom /upload

5. Enter the following command which will allow you to contact all the domain controllers and prepare them for the change.

rendom /prepare

6. Enter the following command to start the renaming. The controllers will restart automatically:

rendom /execute

7. Enter the s to repair the GPO links:

gpfixup /olddns:rdr-it.intra /newdns:rdr-it.com
gpfixup /oldnb:rdr-it.intra/newnb:rdr-it.com

8. The following command is to be passed when you are sure that all the stations have taken the name change into account because it removes the forwarders from the old name to the new one. I advise you to wait a few weeks especially if you have nomadic workstations.

rendom /clean

As a result of this, you will also be able to delete the old DNS zone from your server.

If you have an Exchange service, I do not recommend the operation.




Leave a Comment