Last active
August 29, 2015 14:02
-
-
Save martin9700/af3fc9f70368b6a62434 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
$DCs = Get-ADDomainController -Filter * | Select -ExpandProperty Name | |
$AllUsers = ForEach ($DC in $DCs) | |
{ Get-ADUser -Filter * -SearchBase "OU=People,CN=athena,CN=health" -Server $DC | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment