In this tutorial, the Active Directory Domain Name rename is expanded with Multiple DC and include a client. This tutorial will rename domain OldDomain.local to NewDomain.local
Step 1: Pre-Rename Check List
S1-1. Ensure All Active Directory Catalog are in-sync to all DCs.
a. To check replication status
RepAdmin.exe /ReplSummary
b. To start immediate replication manually
RepAdmin.exe /SyncAll <DC_HOSTNAME> /APed
Note: <DC_HOSTNAME> is the DC hostname.
Step 2: Rename ADDS Domain Name
S2-1. Open Command Prompt in Administrator Mode
S2-2. Execute RenDom /List to generate Forest Naming Context in XML file (Domainlist.xml)
Execute RenDom /ShowForest to view auto generated xml of current domain
S2-3. Update the current domain name with new domain name and save the file
In this tutorial, Rename Domainlist.xml entry:
– DNS name OldDomain.local to NewDomain.local
– NetBios name OLDDOMAIN‘ to NEWDOMAIN
S2-4. Execute RenDom /ShowForest to view the new domain name in xml file
S2- 5. Execute RenDom /Upload to the domain name changes from xml file
S2-6. Execute RenDom /Prepare to start prepare domain name rename
If RenDom Prepare command fails as the following error:
The solution is to sync AD Replication manually with the following command:
RepAdmin /SyncAll DC1 /APed
RepAdmin /SyncAll DC2 /APed
S2-7. Execute RenDom /Execute to start domain name rename process.
S2-8. Once RenDom completed execute rename domain command, All DCs server will be automatically restarted.
Note: Do not force restart.
S2-9. After the server reboots, take note to switch user to logon with new domain name
Step 3: Fix Up Group Policy After Rename
S3-1. After rename process completed, GPMC will need to be fix up to use the new domain name.
You will encounter the following error:
S3-2. Execute two commands to fix GPMC (DNS & NetBIOS Name):
GPFixUp /OldDNS:<OLD_DOMAIN_NAME> /NewDNS:<NEW_DOMAIN_NAME>
GPFixUp /OldNB:<OLD_NETBIOS_NAME> /NewNB:<NEW_NETBIOS_NAME>
Step 4: Rename Server Domain
S4-1. After Domain Name Rename completed, the server domain info still reflects the old domain name
S4-2. All DCs computer name must be renamed with the following command:
NetDom COMPUTERNAME <OLD_FQDN> /Add:<NEW_FQDN>
NetDom COMPUTERNAME <OLD_FQDN> /MakePrimary:<NEW_FQDN>
S4-3. Restart server
Step 5: Fix DNS for new Domain Name
S5-1. Open DNS Manager
S5-2. Open File Manager and Navigate to %WINDIR%\System32\Config
and backup DNS netlogon file as shown below
S5-3. Create Two Active-Directory Primary Integrated DNS Forward Lookup Zone
DnsCmd /ZoneAdd <NEW_DOMAIN_NAME> /DsPrimary
DnsCmd /ZoneAdd _msdcs.<NEW_DOMAIN_NAME> /DsPrimary /DP /forest
S5-4. Restore DNS NetLogon backup File
S5-5. Open Properties of new zone and set Dynamic updates to Secure Only
S5-6. Restart Active Directory Domain Services Service
S5-7. Test DNS using DcDiag Tool
Execute DcDiag /Test:DNS /DnsBasic
Step 6: Finalize Domain Name Rename
S6-1. Execute RenDom /Clean to remove domain rename status
S6-2. Execute RenDom /End to unfreeze Directory Services
Step 7: Domain Name Change on Windows Client
S7-1. Windows Client must logon using New Domain Name
Step 8: Delete DNS Zone for Old Domain
S8-1. Open DNS Manager
S8-2. Remove Old DNS Zone until all clients have logon using new Domain Name