CmdID / PowerShell / Cmdlets / Get
Get-ADDomainController
Gets one or more Active Directory domain controllers based on discoverable services criteria, search parameters or by providing a domain controller identifier, such as the NetBIOS name. Windows Server PowerShell reference
From the Windows Server PowerShell reference 14 parameters Its page in the reference
Parameters
-AuthTypeSpecifies the authentication method to use.-AvoidSelfSpecifies to not return the current computer as a domain controller.-CredentialSpecifies the user account credentials to use to perform this task.-DiscoverSpecifies to return a discoverable domain controller that meets the conditions specified by the cmdlet parameters.-DomainNameSpecifies the domain to search.-FilterSpecifies a query string that retrieves Active Directory objects.-ForceDiscoverIndicates that the cmdlet to clears any cached domain controller information and perform a new discovery.-IdentitySpecifies an Active Directory domain controller object by providing one of the following values.-MinimumDirectoryServiceVersionSpecies the earliest operating system that the domain controller can have so that it is returned by the cmdlet when getting a domain controller using *Discover* parameter.-NextClosestSiteSpecifies to return a domain controller in the next closest site when a domain controller is not found in the site that contains the client.-ServerSpecifies the Active Directory Domain Services instance to connect to, by providing one of the following values for a corresponding domain name or directory server.-ServiceSpecies the types of domain controllers to get.-SiteNameSpecifies the name of a site to search in to find the domain controller.-WritableSpecifies whether this is a writable domain controller.