To use the Exchange Management Shell to view the members of a dynamic distribution group

 

This example returns a list of members for the dynamic distribution group called "full-time employees". The first command dynamic distribution group object stored in a variable $FTEin. The second command using the  Get-Recipient cmdlet listed and defined conditions for the dynamic distribution group that matches the recipient.

 $FTE = Get-DynamicDistributionGroup "Full Time Employees"
 
Get-Recipient -RecipientPreviewFilter $FTE.RecipientFilter -OrganizationalUnit $FTE.RecipientContainer

 

Guess you like

Origin www.cnblogs.com/reachos/p/10966531.html