Jump to content

Recommended Posts

Posted
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)
Posted

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' )

}

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...