Powershell to get all the members in about 20 DynamicDistribution group in exchange 2010
I have about 20 DynamicDistribution groups in my exchange 2010 enviroment.  I need to run a report to show all the members in each group.  How can I accomplish this with powershell ?  thanks for all the help
April 22nd, 2015 5:58pm

I assume you don't want the output of all 20 groups dumped into one single list.  So, you'd just use this:

Use the Shell to preview the list of members of a dynamic distribution group

This example returns the list of members for the dynamic distribution group Full Time Employees. The first command stores the dynamic distribution group object in the variable $FTE. The second command uses the Get-Recipient cmdlet to list the recipients that match the criteria defined for the dynamic distribution group.

$FTE = Get-DynamicDistributionGroup "Full Time Employees"
Get-Recipient -RecipientPreviewFilter $FTE.RecipientFilter

For detailed syntax and parameter information, see Get-DynamicDistributionGroup and Get-Recipient.

Free Windows Admin Tool Kit Click here and download it now
April 22nd, 2015 8:52pm

Hi,

Thank you for your question.

We found out a PS script to export all distribution group and all members in Exchange 2010 and export them into CSV file. Please refer to it:

http://gallery.technet.microsoft.com/office/Export-all-distribution-707c27eb

Notice: By my testing, it was adapt to dynamic distribution group.

If there are any questions regarding this issue, please be free to let me know.

Best Regard,

April 23rd, 2015 2:54am

this is good for one group, but with more than one groups.  this will be an issue.

I used this

Get-dynamicDistributionGroup -Filter {name -like "employee*"}

to generated all the dynamicDistributiongroup with name like  employee. 

  • Edited by dookie888 10 hours 19 minutes ago
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2015 5:06pm

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

Other recent topics Other recent topics