# Empty Distribution Groups

**URL:** <https://forums.powershell.org/t/empty-distribution-groups/3600>\
**Category:** PowerShell Help\
**Created:** [January 6, 2015, 10:36pm UTC](https://forums.powershell.org/t/empty-distribution-groups/3600 "2015-01-06T22:36:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![minesh-patel](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/minesh-patel/32/818_2.png) [@minesh-patel](https://forums.powershell.org/u/minesh-patel)\
**Post date:** [January 6, 2015, 10:36pm UTC](https://forums.powershell.org/t/empty-distribution-groups/3600/1 "2015-01-06T22:36:15Z")

</div>

Hi,

I was just wondering if someone could help me opn this. I am trying to run a script to find a list of all empty distribution groups using powershell.

When I do:

Get-ADGroup -Filter (‘groupcategory -eq “distribution”’) -Properties \*

This lists all distribution groups. However, I need to filter further to select where members = null/empty.

Thanks,  
Minesh

---

<div class="post-metadata">

**Author:** ![matt-mcnabb](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matt-mcnabb](https://forums.powershell.org/u/matt-mcnabb)\
**Post date:** [January 6, 2015, 11:29pm UTC](https://forums.powershell.org/t/empty-distribution-groups/3600/2 "2015-01-06T23:29:45Z")

</div>

This will get all your distribution groups with a member count of 0:

```
$Groups = Get-ADGroup -Filter "groupcategory -eq 'Distribution'" -Properties Members |
Where-Object {$_.Members.Count -eq 0}
```

---

<div class="post-metadata">

**Author:** ![minesh-patel](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/minesh-patel/32/818_2.png) [@minesh-patel](https://forums.powershell.org/u/minesh-patel)\
**Post date:** [January 7, 2015, 1:32am UTC](https://forums.powershell.org/t/empty-distribution-groups/3600/3 "2015-01-07T01:32:01Z")

</div>

Thanks Matt for your help - works!

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:46pm UTC](https://forums.powershell.org/t/empty-distribution-groups/3600/4 "2024-05-16T20:46:32Z")

</div>

Closed on May 16, 2024, 8:46pm UTC


