Finding the Domain Controllers or Global Catalog Servers in a Site
Applies To: Windows Server 2008 R2
This topic explains how to use the Active Directory module for Windows PowerShell to find the domain controllers or global catalog servers in a site.
Example
The following example demonstrates how to find the global catalog servers in a forest:
Get-ADDomainController -Filter {Site -eq 'Default-First-Site-Name'} | FT Name,IsGlobalCatalog
Additional information
For a full explanation of the parameters you can pass to Get-ADDomainController, at the Active Directory module command prompt, type Get-Help Get-ADDomainController –detailed, and then press ENTER.