Hi Fady,
The error message "The directory service is unavailable" usually indicates that the domain controller is not reachable or there is a network connectivity issue. Here are some steps you can take to troubleshoot the issue:
- Check the network connectivity between the two domain controllers. Ensure that they can ping each other by IP address and hostname.
- Verify that the new server has replicated all the necessary Active Directory information from the existing domain controller. You can use the "repadmin /showrepl" command to check the replication status.
- Ensure that the Windows Firewall is not blocking the necessary ports for Active Directory communication. You can temporarily disable the firewall to test if this is the issue.
- Check the DNS configuration on the new server. Ensure that it is pointing to the correct DNS server(s) and that the DNS records for the domain controllers are correct.
Once you have resolved any issues with network connectivity, replication, firewall, and DNS, you should be able to transfer the schema master role to the new server using the "Move-ADDirectoryServerOperationMasterRole" command.
Best regards,
Qiuyang