Count members of dynamic distribution group

# Count members of the distrogroup
$members = Get-DynamicDistributionGroup -Identity “Groupname”
(Get-Recipient -RecipientPreviewFilter $members.RecipientFilter).count

Advertisements

One thought on “Count members of dynamic distribution group

  1. griciko

    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?

    Like

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s