Overview #
There are several methods for locating Domain Controllers depending on what you do know about the environment you are within.We also tracked down How Domain Controllers Are Located in Windows.
LDAP #
We have several Active Directory Computer Related LDAP Query Examples.Powershell #
We found a Powershell script for Getting Domain Controllers
Executing
- "Get-Domaincontroller" - form commandline will obtain the Domain Controllers for the current domain that you are associated with.
- "Get-Domaincontroller -CurrentForest" - form commandline will obtain the Domain Controllers for the Forest that you are associated with.
- "Get-DomainController -Domain <yourdomain>.net" - will get the Domain Controllers for the supplied Domain.