List Members of a Dynamic Distribution List

This post was inspired by a post found on http://www.howexchangeworks.com/2009/10/task-listing-members-of-exchange-2007.html

But I have modified the commands some to get a better listing.

$group = Get-DynamicDistributionGroup –identity “AllStaff”

Get-Recipient –RecipientPreviewFilter $group.RecipientFilter | sort name | select name > d:\_temp\dlist_members.txt

These changes will give you an alphabetical list of members, with names only in the list.   I find this easier for managers to use to verify list membership.

The list we have uses the PO filed to filter it.  So we then just have to go to the user account and add specific text in the PO filed to add or remove them from the distribution list.