# Distribution group count should be retrievable

Distribution groups are email-only groups used for Exchange and email distribution lists. Understanding their count and proportion helps:

Source: https://maester.dev/docs/tests/AD-GRP-06

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/soulemike" title="Michael Soule · Original author"><img src="https://github.com/soulemike.png" alt="Michael Soule" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/soulemike">Michael Soule</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/ad">Active Directory</a> · Active Directory · Groups · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AD-GRP-06
```

## Overview

Distribution groups are email-only groups used for Exchange and email distribution lists. Understanding their count and proportion helps:

- **Email infrastructure assessment**: Provides visibility into the email distribution infrastructure
- **Security boundary awareness**: Distinguishes email-only groups from security groups that control access
- **Exchange management**: Helps assess Exchange/Exchange Online integration and email distribution complexity
- **Migration planning**: Useful when planning migrations to Exchange Online or other email systems

Distribution groups cannot be used for access control—they are purely for email functionality.

#### Control Type

**Operational**

#### Security Recommendation

Regularly review distribution groups to:
1. Identify and remove stale or unused distribution lists
2. Ensure sensitive distribution groups have appropriate ownership
3. Verify that distribution groups are not being used inappropriately for security purposes
4. Consider converting distribution groups to Office 365 Groups where appropriate for modern collaboration

#### How the Test Works

This test examines all group objects and identifies those where:
- The `GroupCategory` property equals "Distribution"
- These groups are used solely for email distribution, not access control

The test provides counts and percentages to understand the distribution of group types in your environment.

#### Related Tests

- `Test-MtAdGroupSecurityCount` - Counts security groups used for access control
- `Test-MtAdGroupDomainLocalCount` - Counts domain local scope groups
- `Test-MtAdGroupGlobalCount` - Counts global scope groups
- `Test-MtAdGroupUniversalCount` - Counts universal scope groups

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | AD-GRP-06 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Groups |
| Area | Infrastructure hardening |
| Resource type | Group |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtAdGroupDistributionCount](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GRP-06.ps1) |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:group:ReadProperty |

</details>

## Source

- Test: [`tests/ad/group/Test.AD-GRP-06.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GRP-06.ps1)
- Documentation: [`tests/ad/group/Test.AD-GRP-06.md`](https://github.com/maester365/maester/blob/main/tests/ad/group/Test.AD-GRP-06.md)
