Applies to: Office 365 for professionals and small businesses, Office 365 for enterprises, Live@edu
Topic Last Modified: 2011-03-19
After you've created dynamic distribution groups, you can view the membership of the group, delete a group, or modify the filter that you created for the group. You use Windows PowerShell for all these tasks.
Before you begin
To learn how to install and configure Windows PowerShell and connect to the service, see Use Windows PowerShell in Exchange Online.
View the members of a dynamic distribution group
Dynamic distribution groups aren't displayed in the Exchange Control Panel. To view the members of a dynamic distribution group, you have to run the following commands:
$DDG = Get-DynamicDistributionGroup <group name> Get-Recipient -RecipientPreviewFilter $DDG.RecipientFilter
The first command stores the dynamic distribution group object in the $DDG variable, and the second command uses the Get-Recipient cmdlet to list the recipients that match the criteria defined for the dynamic distribution group.
Delete an existing dynamic distribution group
Run the Remove-DynamicDistributionGroup command.
Modify the filter for an existing dynamic distribution group
You can do either of the following:
-
Run the Set-DynamicDistributionGroup cmdlet with the IncludedRecipients parameter. You can also specify any of the following parameters that are used with precanned filters:
-
ConditionalCompany
-
ConditionalCustomAttributeN where N is an integer from 1 through 15.
-
ConditionalDepartment
-
ConditionalStateOrProvince
CustomtoPrecanned.
-
ConditionalCompany
-
Run the Set-DynamicDistributionGroup cmdlet with the RecipientFilter parameter to specify an OPATH customized filter.
The filter that you specify completely replaces any existing filters for the group. If the group was originally created by using precanned filters, the value of the RecipientFilterType parameter of the group is changed fromPrecannedtoCustom.