View members of a dynamic distribution group
Dynamic distribution groups are distribution groups whose membership is based on specific recipient filters rather than a defined set of recipients. For more information, see Manage dynamic distribution groups.
You can't use the Exchange admin center (EAC) to view the members of a dynamic distribution group. You can only use the Exchange Management Shell.
What do you need to know before you begin?
Estimated time to complete: 2 minutes.
You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Dynamic distribution groups" entry in the Recipients Permissions topic.
For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.
Having problems? Ask for help in the Exchange forums. Visit the forum at Exchange Server.
Use the Exchange Management Shell to view the members of a dynamic distribution group
To view the members of a dynamic distribution group, use the following syntax:
$<VariableName> = Get-DynamicDistributionGroup -Identity <DynamicDistributionGroupIdentity> Get-Recipient -RecipientPreviewFilter ($<VariableName>.RecipientFilter) [-OrganizationalUnit ($<VariableName>.RecipientContainer)]
<DynamicDistributionGroupIdentity>is the name, alias, or email address of the dynamic distribution group.
- The OrganizationalUnit parameter is required only if you used the RecipientContainer parameter in the filter for the dynamic distribution group to specify an OU or container that's different than where the dynamic distribution group object resides (typically, the Users container). It's OK to include the OrganizationalUnit parameter even if it isn't required.
This example returns the list of members for the dynamic distribution group named 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 -Identity "Full Time Employees" Get-Recipient -RecipientPreviewFilter ($FTE.RecipientFilter)
This example returns the members of the dynamic distribution group named Project X that exists in the Users container, but uses the OU named ContosoProjects in the filter for the group.
$ProjectX = Get-DynamicDistributionGroup -Identity "Project X" Get-Recipient -RecipientPreviewFilter ($ProjectX.RecipientFilter) -OrganizationalUnit ($ProjectX.RecipientContainer)