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.

Thanks
techgeniousAsked:
Who is Participating?

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

x
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.

needleboyCommented:
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.
0
MegaNuk3Commented:
Or
EMS
Get-mailbox "<display name>" | fl displayname, *member*
0
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.
0
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.

MegaNuk3Commented:
Why not just do it through EMC? EMC-->recipient
0
MegaNuk3Commented:
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.
0

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
0
MegaNuk3Commented:
Try it against an account that you know has distribution Group membership like your account
0
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
Exchange

From novice to tech pro — start learning today.