Modify domain name on Windows Server 2019 DC

During the operation, if there are multiple DCs, you can operate on the main DC first, then log in to other DCs to check one by one, and then make changes.

During the process, do not restart the DC group at will. In the experiment, DC01 was changed without the modification of DC01, which caused the failure of the administrator folder under the DC01C disk: C:\User\Administrator, and the system automatically added "Administrator.[Old domain name ]” folder as the administrator folder.

After all modifications are completed, check whether the DC extension, domain member extension, computer full name, DNS, group policy, five roles, etc. are correct, and delete the old domain name Zones in DNS after all are correct.

  1. Open [Server Manager] > [Tools] > [DNS], and create a new main area in DNS; (this step is a screenshot after the modification is completed)
  2. Enter the command rendom /list  on the CMD command line   , and the Domainlist.xml file will be generated in the current directory of the command line;
  3. Open the directory C:\User\Administrator, edit the Domainlist.xml file, and change the old domain name to the new domain name;
  4. After the modification is complete, execute the command in CMD.
    
    Rendom /showforest
    Rendom /upload
    Rendom /prepare
    Rendom /execute
    
  5. After executing the above command, the system will automatically restart; (it is recommended to restart twice). (Once when DC02 was executed, DC01 also had a pop-up window and restarted)
  6. Run rendom /end to unfreeze the forest configuration. Since the entire forest is frozen after running rendom /upload, unfreeze the configuration to allow subsequent changes. (Only restarting once will cause an error) 
  7. Gpfixup /olddns: old domain name.COM /newdns:new domain name.COM /oldnb:old domain name/newnb:new domain name (if the server does not add WINS service, nb is not needed); 
  8. Change the DNS name of each DC server. (The domain name displayed in the computer properties is the new domain name, but the suffix of the full name of the computer is the old domain name, which needs to be modified here) 
  9. Confirm that the computer in the domain has successfully changed the domain name and then execute: rendom /clean to clean up the references of the old domain name. 
  10. Open DNS and check whether the suffix of the entry in the new domain name is the new domain name. The old domain name can be deleted.
  11. Open the group policy, if it prompts that the group policy of the old domain name cannot be connected, close it, link the group policy of the new domain name, and the content of the group policy is the same as the original one.
  12.   Finally check the five roles using bright  netdom query fsmo .

Guess you like

Origin blog.csdn.net/weixin_57050763/article/details/128153896