Get-ADDomainController: inventory addomain controller with rollback checks
Microsoft states: “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.”
Read the checklist