I want to check for users in certain OU if they are members of groups (and which) from another certain OU. How can I do this ?
Example: I have three OUs for users (users1OU, users2OU, users3OU) and two OUs for various grups (grups1OU, groups2OU).
Now I want to know for users from OU users1OU, members of which groups from OU groups2OU, they are.
I'm using powershell 2.0 and win 2008.