Get Distribution Group Membership for a Specific Mailbox

Need some help.  I know that I can extract distribution list membership using PowerShell, but how do I extract the distribution groups of which a mailbox is a member?  Basically want to know what commands will let me get the distribution group membership for a specific user.

Anyone know?  I've been looking around and I think I can manage it with a filter, but I'm not sure how to get it done.

January 15th, 2015 11:06am

Take a look at the script in the thread below...

http://community.office365.com/en-us/f/148/t/71857.aspx

It should give you the information you need.

Free Windows Admin Tool Kit Click here and download it now
January 15th, 2015 12:51pm

Hi,

I saw your post in Windows PowerShell forum, and you got a great command. I post that command here for others who look for the same requirement in this forum.

Get-ADPrincipalGroupMembership "Test User1" | Where { $_.GroupCategory -eq 'Distribution' }

Best Regards.

January 15th, 2015 9:31pm

Make sure you import the powershell module before you run the cmdlet...

Import-Module ActiveDirectory

Get-ADPrincipalGroupMembership "Test User1" | Where { $_.GroupCategory -eq 'Distribution' } | Select Name

Free Windows Admin Tool Kit Click here and download it now
January 15th, 2015 10:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics