Dynamic group members
List member of dynamic distribution groups
When your environment has Microsoft Exchange Servers installed then you can use dynamic distributiongroups. After you create a dynamic group somtimes you want to know how is a member of this group.
To do this we save the group in a variable with this command:
|$DynGrp = Get-DynamicDistributionGroup -Identity "<GruppenName>"|
Now we use the Get-Recipient to display all members of this dynamic group.
|Get-Recipient -RecipientPreviewFilter $DynGrp.RecipientFilter|
Or you use the short way of both commands like this:
|Get-Recipient -RecipientPreviewFilter (Get-DynamicDistributionGroup -Identity "<GruppenName>").RecipientFilter|
Permalink - Tags: Powershell, Exchange, Dynamic, group