Created
November 4, 2020 15:39
-
-
Save roberttoups/a64efb16b482f6a78ebbbd3e0ee21bb1 to your computer and use it in GitHub Desktop.
View all the Master Root Keys in the Forest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$DomainDistinguishedName = Get-ADDomain | | |
Select-Object -ExpandProperty 'DistinguishedName' | |
$SearchBase = "CN=Master Root Keys,CN=Group Key Distribution Service,CN=Services,CN=Configuration,$DomainDistinguishedName" | |
Get-ADObject -Filter '*' -SearchBase $SearchBase |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment