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?
 
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
 
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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.