Created
January 30, 2018 13:35
-
-
Save wim-beck/879900f0ba796589418d156131e47703 to your computer and use it in GitHub Desktop.
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
# Source: http://virot.eu/get-the-sid-of-all-domains-in-a-forest/ | |
Import-Module ActiveDirectory | |
(Get-ADForest).Domains| %{Get-ADDomain -Server $_}|select name, domainsid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment