All DC's FSMO and are Global Catalog True:False

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

Thank you

Take a look at:

Get-ADDomainController -Filter *

To get multiple domains in the forest, you can look at something like this:

https://techibee.com/active-directory/powershell-get-all-domains-and-domain-controllers-in-whole-forest/2868

There are lots of articles on this topic…

 

PowerTip: Use PowerShell to Get List of FSMO Role Holders
https://blogs.technet.microsoft.com/heyscriptingguy/2014/11/28/powertip-use-powershell-to-get-list-of-fsmo-role-holders

Use PowerShell to Find Where the Current FSMO Roles are Assigned in Active Directory
https://mikefrobbins.com/2013/04/11/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 )
https://www.markou.me/2016/10/get-list-fsmo-role-holders-using-powershell-one-liners

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

This work like a charm ^^^^^

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?