Skip to content

Instantly share code, notes, and snippets.

@tom-henderson
Created September 7, 2017 01:04
Show Gist options
  • Save tom-henderson/4359f628c3e31edcf649a7ee4f98410c to your computer and use it in GitHub Desktop.
Save tom-henderson/4359f628c3e31edcf649a7ee4f98410c to your computer and use it in GitHub Desktop.
Get-ADDomainController -Filter * `
| Select Name, IsGlobalCatalog, Site, IPV4Address, `
@{N='SchemaMaster';E={'SchemaMaster' -in $_.OperationMasterRoles}}, `
@{N='DomainNamingMaster';E={'DomainNamingMaster' -in $_.OperationMasterRoles}}, `
@{N='PDCEmulator';E={'PDCEmulator' -in $_.OperationMasterRoles}}, `
@{N='RIDMaster';E={'RIDMaster' -in $_.OperationMasterRoles}}, `
@{N='InfrastructureMaster';E={'InfrastructureMaster' -in $_.OperationMasterRoles}} `
| FT -AutoSize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment