sted Posted July 3, 2017 Posted July 3, 2017 with active directory can anyone think of an easy way of finding all users who are a member or BOTH group1 and group2 (there arnt so many users i couldnt just check them all manually but id rather not have to) as ive had odd issues where being a member of either is fine a member of both causes very long logons (i know why but thats harder to fix than just removing them from being in both groups)
djm968 Posted July 3, 2017 Posted July 3, 2017 Powershell is your friend. Something like this: Get-ADUser -Filter * -Properties memberOf | ` Where-Object { $_.memberof.contains('CN=foo,OU=allsites,DC=example,DC=org') -and ` $_.memberof.contains('CN=bar,OU=allsites,DC=example,DC=org' ) }
round2it Posted July 3, 2017 Posted July 3, 2017 i use ad manager proplus (trial has a limit of showing 100 items but for your request it is fine https://www.manageengine.com/products/ad-manager/download.html
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now