Created
March 27, 2018 20:10
-
-
Save brettmillerb/2372b9e93c771b74c38c02c8e823afcf 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
$users = get-aduser -filter {memberof -like '*'} -Properties memberof | |
$hash = @{} | |
foreach ($user in $users) { | |
$hash.add($user.samaccountname,$user) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment