Monday, September 27, 2021

PowerShellTip: Get AD Global Catalog status from all DC


 
[System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain().DomainControllers | %{"$($_.Name) : $($_.isglobalcatalog())"}

No comments:

Post a Comment