.. / 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


Functions:
Type:
Toolsets:

Domain

List all domain controllers

Get-ADDomainController -Filter * -Server ad.bitsadmin.com
Usecase
Enumerate all domain controllers of a domain

Comments
PowerShell Module: ActiveDirectory

List domain controllers

Get-ADDomainController -Discover -Service GlobalCatalog -DomainName ad.bitsadmin.com
Usecase
Obtain hostname and IP of a GC domain controller

Comments
PowerShell Module: ActiveDirectory




Updated: 2023-07-01
Contributor: Arris Huijgen (bitsadmin)