please test before
- Open the Exchange Management Shell on your Exchange Server.
- To set the new Active Directory server as the default global catalog for all forests, run the following command: Set-AdServerSettings -DefaultGlobalCatalog 'new-AD-server' Replace 'new-AD-server' with the FQDN of your new Active Directory server.
- To set the new Active Directory server as the default preferred domain controller for all Exchange services, run the following command: Set-AdServerSettings -PreferredServer 'new-AD-server' Replace 'new-AD-server' with the FQDN of your new Active Directory server.
- To set the new Active Directory server as the default configuration domain controller for all forests, run the following command: Set-ExchangeServer -Identity 'your-Exchange-server' -StaticConfigDomainController 'new-AD-server' Replace 'your-Exchange-server' with the name of your Exchange server, and 'new-AD-server' with the FQDN of your new Active Directory server.