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