I have to retrieve all distribution groups a user belongs to in powershell name of user for example is sam.sample@mail.com. we are using exchange 2010. I am not a very good scriptor. please keep it simple if possible.
Thank you
furthermore can you explain the code you post for my better understanding