Our on-premises SharePoint 2013 and 2010 Farms are using autodiscovery for the domain controller user profile sync.

Is there a way using PowerShell to find out which DC SharePoint is actually using?

2 Answers 2


If we run the below PowerShell command, we will get all details about the domain controller.


Domain Controller Details

So, now at the result of the Get-ADDomainController command, we can get to know which domain controller is used where or even you can pass the specific parameter to the above command.

For details, you may refer to the below article:

How to Find Domain Controllers with Windows Powershell.


No, each request may route to a different Domain Controller (this is by design for any application that uses standard LDAP/GC lookups). Simply using PoSh to attempt to identify a DC will not indicate which DC is used in authentication or LDAP/GC queries.

You can set the ULS verbosity to a higher level, then yes you can see in ULS which DC was queried -- but again, this may be different each time an LDAP bind/request is made.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.