#PSTip Preview the members of a dynamic distribution group

Note: This tip requires PowerShell 2.0 or above.

Getting the members of a dynamic distribution group in the Exchange Management Console (EMC) is not an issue; you open the group and click the Preview button.

However, if you list the properties of the group in the Exchange Management Shell (EMS) you will not find the members as they are determined at the run time by the custom filter used when the group was created. Viewing the members of the group is twofold–you get the group’s recipient filter and use it with the Get-Recipient cmdlet!

$ddg = Get-DynamicDistributionGroup ITUsers
Get-Recipient –RecipientPreviewFilter $ddg.RecipientFilter
Share on: