Forum Discussion

Roger Seekell's avatar
Roger Seekell
Copper Contributor
Dec 03, 2020
Solved

Get Distribution Groups of a certain size (member count)

I've been tasked with getting/reporting distribution groups of 100 members or more, and specifically the sending restrictions applied to them. 

 

We are a large tenant with over 100,000 users and over 4000 groups.  

 

Is there a GUI way to do this, or must I use PowerShell?

 

With PowerShell, I can get all groups and their sending restrictions, but what's the quickest way to simply get the number of members in the group, including nested members?  

  • if you have hybrid identities, you can query local ad group members Get-ADGroupMember.

    Run a loop to get member count for each group..

4 Replies

Resources