Get-Aduser – OU member and group membership

https://pastebin.com/Qj6jirN1

I went looking for a PS script to get a list of the members of an OU, and list the groups that those members are in. This script definitely does that, and I do like the output for the most part. I changed mine a bit and left this one a little generic.

My question, what’s the best way to add all of the other OUs in this same script? I’ve tried a few times and as a PS novice, haven’t found a good way to do it.

Any help you all can provide would be greatly appreciated.

submitted by /u/easpider
[link] [comments]

Leave a Reply