title: Powershell, how to check group memberships for AD users
body: <p>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 ? </p>
  
  <p>Example:
  I have three OUs for users (users1OU, users2OU, users3OU) and two OUs for various grups (grups1OU, groups2OU). </p>
  
  <p>Now I want to know for users from OU users1OU, members of which groups from OU groups2OU, they are.</p>
  
  <p>I'm using powershell 2.0 and win 2008.</p>