In this tutorial, well rename a domain name in AD forest with domain controller running Windows Server 2012. BACKUP the domain controllers before proceeding, and ensure that you can restore domain controllers to original state if something goes wrong. If your DCs are running in virtual machines powered by Hyper-V or VMWare, take snapshots.
Logon to a non-DC member server, open Server Manager -> Manage -> Add Roles and Features.
Add the Active Directory Domain Services, and also add the features that are required together with the management tools.
IMPORTANT: DO NOT configure and promote the server meant as Control Station to a domain controller after installing the AD DS role. The purpose of installing the role is to make available the rendom.exe and gpfixup.exe utilities essential in domain renaming.
Select Primary Zone as Zone Type.
On the Active Directory Zone Replication Scope, select To all DNS servers running on domain controllers in this domain: old-domain.com.
Enter your new domain name, e.g. ad.new-domain.com in the Zone Name.
On Dynamic Update, select Allow only secure dynamic updates (recommended for Active Directory).
Once the New Zone Wizard is completed, you will be able to see your new DNS zone for your new domain name in the DNS Manager.
Note that you only need to change the path of domain-based DFS namespace if the type of name of domain (i.e. NetBIOS or FQDN fully qualified domain name) used by namespace in the configuration is changed. Refer to TechNet for more information.
In the Control Station (domain member server), open a Command Prompt as Administrator. Then run the following command to instruct rendom to contact DC which owns the domain naming operations master role to generate a state file named Domainlist.xml which contains current forest configurations and domain structures, namely ForestDNSZones, DomainDNSZones and NetBios details.
rendom /list
Locate Domainlist.xml file and edit it.
Replace all existing domain name with new domain name, including the NetBIOS name if its changed. Save the file when done.
Back in the Command Prompt, type the following command to verify the new configuration. The command does not make any changes yet.
rendom /showforest
Generate the directory update instructions specified in Domainlist.xml and upload the resultant domain rename instructions to the configuration directory partition at the domain controller that is currently the domain naming operations master for the forest:
rendom /upload
The domain rename instructions are replicated to all other domain controllers in the forest through normal replication of the configuration directory partition. If you have multiple DCs, its recommended to proceed to execute the rename instructions only after these rename instructions replicate to every domain controller in the forest.
This step will also freeze the forest configuration from certain types of changes, such as addition/removal of domains, addition/removal of DCs and addition/removal of trusts were not allowed within the forest.
You can track the state of all domain controllers in a Domain Rename State File named DcList.xml which is automatically generated and updated by rendom.exe tool. At this point, the state should be Initial.
DcList.xml and DNSRecords.txt files are generated automatically in the folder which rendom.exe command was ran, providing critical info about the domain name change.
DcList.xml provides a list of all domain controllers detected in the forest, and their domren state respectively.
repadmin.exe /syncall /d /e /P /q DomainNamingMaster-HostName
Verify the readiness of every domain controllers in the forest to perform the domain name change. After this command, the State in DcList.xml is changed to Prepared. All domain controllers must be in Prepared state before domain renaming can be executed.
rendom /prepare
Execute the domain name change on all DCs:
rendom /execute
After the execution command is issued, the Active Directory Domain Services may experience interruption. Once the process is completed, the domain controllers will automatically reboot. At the point where execution of domain rename instructions are completed, the state in DcList.xml on the Control Station server for all DC servers is changed to Done.
On some DC servers or when logon to some DC servers, you may see the message that youre about to be signed off, the Directory Service is shutting down. Regardless of whether you click on Close or not, DC will automatically restart.
If youre seeing the computer is suggesting you that login is done using the old domain name, its just the case of remembering the last user account logged in.
When logging into Control Station, use NEW domain name.
Skip the following step if youre not renaming FQDN (fully qualified domain name) of the domain, else:
gpfixup /olddns:old-domain.local /newdns:new-domain.com
Skip the following step if youre not renaming NetBIOS name of the domain, else:
gpfixup /oldnb:OLD-NetBIOS /newnb:NEW-NetBIOS
repadmin.exe /syncall /d /e /P /q D DC-HostName NewDomainDN
Where NewDomainName is dc=domain,dc=com.
netdom computername old.computer.name /add:new.computer.name netdom computername old.computer.name /makeprimary:new.computer.name
Replace old.computer.name and new.computer.name with FQDN of the server in new domain.
Reboot the domain controller.
Repeat the renaming process for all domain controllers in the forest.
Rebooting non-DC computers twice ensures that all domain computers learns the new domain name and also propagates to all applications running on the computers.
When logging into domain member after restarting or for those just booting up, use NEW domain name.
Changing Folder Redirection in Group Policy Management.
Changing domain-based DFS path in roaming user profiles and Remote Desktop Services profiles in user account properties.
You may see the following messages indicating the pointing to the existing home folders:
The \\new-domain.com\home-folder was not created already exists. Do you want this user to be granted full control of this folder?
The \\new-domain.com\home-folder home directory was not created because it already exists. You might want to select a different name, or make sure that user has full access privileges to the existing one.
rendom /clean
Important: If you run rendom /clean command and there are members that have not been rebooted twice you will have to rejoin them to the domain. Once rendom /clean command is executed, old domain name, including all values of ms-DS-DnsRootAlias from the domain name operations master, is removed from Activate Directory rendering those computers inaccessible to the new domain.
You can also view the domain member computers re-listed under the new domain.
Based on your Active Directory Domain Services configuration and system environment, you may need to perform more steps and troubleshoot some issues. Here are some common issues and tasks:
But basically, the domain rename is concluded, and you should have a working AD on new domain name.
Post your comment:
Powered By 2013-2015 ©. Juszeil Conception version 2.0
Queries Executed : 0.0157 seconds