# Count members of the distrogroup
$members = Get-DynamicDistributionGroup -Identity “Groupname”
(Get-Recipient -RecipientPreviewFilter $members.RecipientFilter).count
# Count members of the distrogroup
$members = Get-DynamicDistributionGroup -Identity “Groupname”
(Get-Recipient -RecipientPreviewFilter $members.RecipientFilter).count
Hi,
this code show the count of direct members of dynamic group, but this dyn.group can include users and other groups, in some case also dynamic.. how to find the count of only mailbox users that can be in this dynamic group?
LikeLike