This topic contains 5 replies, has 5 voices, and was last updated by
October 31, 2018 at 11:24 pm #120646ParticipantTopics: 114Replies: 244Points: 131Rank: Participant
How can I get a little fancier with this?
Get-ADForest | Select-Object -ExpandProperty GlobalCatalogs
...I want a list of all our DC's in the forest, what FSMO role they hold and True or False if they are GC's
November 1, 2018 at 12:20 am #120651ParticipantTopics: 8Replies: 1191Points: 646Rank: Major Contributor
Take a look at:
Get-ADDomainController -Filter *
To get multiple domains in the forest, you can look at something like this:
November 1, 2018 at 12:30 am #120652ParticipantTopics: 2Replies: 999Points: 1,946Rank: Community Hero
There are lots of articles on this topic...
PowerTip: Use PowerShell to Get List of FSMO Role Holders
Use PowerShell to Find Where the Current FSMO Roles are Assigned in Active Directory
Home / Windows Server / Get list of FSMO Role holders using Powershell ( one-liners )
November 1, 2018 at 3:15 am #120694ParticipantTopics: 9Replies: 417Points: 640Rank: Major Contributor
Here you go:
[system.directoryservices.activedirectory.Forest]::GetCurrentForest().domains.domaincontrollers | select Forest,Name,CurrentTime,OSVersion,Roles,Domain,IPAddress,SiteName
No ActiveDirectory PS module required, can be run from any Windows domain joined computer, need no special permission to AD
November 15, 2018 at 7:03 pm #125003ParticipantTopics: 114Replies: 244Points: 131Rank: Participant
Thanks Sam, Can you augment that to include Global Catalogs? I only see IsGlobalCatalog as a method among the available properties, so can't use it as part of your Select statement.
How can I get this value as well?
November 1, 2018 at 4:52 am #120703ParticipantTopics: 6Replies: 115Points: 102Rank: Participant
This work like a charm ^^^^^
The topic ‘All DC's FSMO and are Global Catalog True:False’ is closed to new replies.