Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$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