This topic contains 5 replies, has 5 voices, and was last updated by
October 31, 2018 at 11:24 pm #120646ParticipantPoints: 71Rank: Member
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 #120651ParticipantPoints: 305Rank: 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 #120652ParticipantPoints: 312Rank: Contributor
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 #120694ParticipantPoints: 76Rank: Member
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 #125003ParticipantPoints: 71Rank: Member
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 #120703ParticipantPoints: 70Rank: Member
This work like a charm ^^^^^
You must be logged in to reply to this topic.