Previewing dynamic distribution group membership
The concept of the dynamic distribution group was introduced with the initial release of Exchange 2007 and included a new way to create and manage distribution groups. Unlike regular distribution groups, whose members are statically defined, a dynamic distribution group determines its members based on a recipient filter. These recipient filters can be very complex, or they can be based on simple conditions, such as including all the users with a common value set for their Company
or Department
attributes in Active Directory. Since these dynamic groups are based on a query, they do not actually contain group members, and if you want to preview the results of the groups query in the shell, you need to use a series of commands. In this recipe, we'll take a look at how to view the membership of dynamic distribution groups in the Exchange Management Shell.
How to do it...
Imagine that we have a dynamic distribution group named Legal
that includes...