Question: how to know which domain controller is the schema master?
Answer: Open the Active Directory Domain and Trusts console, right-click the name icon and then the Operations Master. In the window that will appear you will see who DC has the Domain Naming Master role. How to determine which DC has the Schema Master role. Initially, you will need to register the corresponding dll.