Sometimes in practical applications, we have to modify the server's active domain or server machine name, maybe for better applications? (Haha)
The procedure is as follows:
1. Enter the cmd window
2. Run rendom/list to generate the Domainlist. xml file in the current directory;
3. Edit Domainlist. xml, use the replacement function, replace the original domain name with the new domain name, and save;
4. Run rendom/upload;
5. Run rendom/prepare;
6. Run rendom/execute
7. Restart domain control;
8. Enter the cmd window.
9. Run pfixup/olddns:/newdns:
10. rendom/clean
Finished
Execute the following command:
NETDOM computername OLD-SERVER.MSTC.COM.CN/add: NEW-SERVER.MSTC.COM.CN
1. NETDOM computername win-k90inrjg5no.bgi.COM/add: win-k90inrjg5no.uec.COM
Make sure that the computer account is synchronized and the DNS information registration is complete. Execute:
NETDOM computername OLD-SERVER.MST.CCOM.CN/makeprimary: NEW-SERVER.MSTC.COM.CN
2. NETDOM computername win-k90inrjg5no.bgi.COM/makeprimary: win-k90inrjg5no.uec.COM
Enter:
NETDOM computername NEW-SERVER.MSTC.COM.CN/remove: OLD-SERVER.MSTC.COM.CN
3. NETDOM computername win-k90inrjg5no.uec.COM/remove: win-k90inrjg5no.bgi.COM
In this case, our machine names and domains are switched over. However, all our SharePoint service accounts and database accounts have not been modified.
Modify the SQL account directly in the Window service.
SharePoint service account, we can enter: SharePoint PowerShell
Run the Repair-SPManagedAccountDeployment command.
This command is used to fix the deployment of local management account creden.