Distribution lists in exchange 2007

How do I find out all the distribution lists a user [mailbox] is a member of.

I have a user and I need to know what DL's he is a member of?

I would like to do this via power shell.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Open Outlook and type users mail address in new mail message.
Click check names in Outlook bar, and user real name wil be displayed with bold text.
Double click user name and check for group membership in dialog box.
Get-mailbox "<display name>" | fl displayname, *member*
techgeniousAuthor Commented:
The above did not give me a list of all the distribution lists the user is a member of.

Is there another command.

I need to know what Distribution lists he is a member of so I can remove him.
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Why not just do it through EMC? EMC-->recipient
This works for me:

Get-DistributionGroup | where { (get-DistributionGroupMember $_ | foreach {$_.DisplayName}) -eq "<MBx display name>"}

Just change "<MBx display name>" to the mailbox display name you want the DLs for.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
techgeniousAuthor Commented:
I ran the script and nothing shows up.
Could it be he is not a member of any DLs.

There is no output from this script
Try it against an account that you know has distribution Group membership like your account
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.