Monday, September 27, 2021

PowerShellTip: Get Get AD Domain Controllers operating system


Get-ADDomainController -Filter * | Select-Object Name, OperatingSystem





PowerShellTip: Get AD Global Catalog status from all DC


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