Eric Cobb has a Powershell snippet for us:
I recently had a case where I needed to compare the Active Directory Groups of 2 users and determine which AD Groups both users were in. As it turns out, with a little prep work this is really easy to do in PowerShell.
Click through for the setup and the process.