# Fine-grained password policy value count should be retrievable

Understanding the variation in fine-grained password policy settings helps you:

Source: https://maester.dev/docs/tests/AD-FGPP-02

<!-- 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 · Password policy · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AD-FGPP-02
```

## Overview

Understanding the variation in fine-grained password policy settings helps you:

- **Identify inconsistencies**: Spot policies that may be too lenient or too strict
- **Validate policy design**: Ensure you have appropriate differentiation between user types
- **Find gaps**: Discover if certain security controls are missing from some policies
- **Audit compliance**: Verify that all policies meet minimum security requirements

Having multiple distinct values indicates you're using FGPPs to differentiate security requirements. Having identical values across all policies may indicate unnecessary duplication.

#### Control Type

**Operational**

#### Security Recommendation

Review your fine-grained password policies to ensure:
- **Privileged accounts** have the strongest policies (longest passwords, shortest max age)
- **Service accounts** have appropriate policies (very long passwords, no expiration if needed)
- **Regular users** have balanced policies (secure but usable)
- **No policies are weaker** than the default domain policy

To review policy values:
1. Open **Active Directory Administrative Center**
2. Navigate to **System** > **Password Settings Container**
3. Review each policy's settings
4. Ensure policies are appropriately differentiated

#### How the Test Works

This test retrieves all fine-grained password policies using `Get-ADFineGrainedPasswordPolicy` and counts distinct values for key settings:
- Minimum password length
- Maximum password age
- Password history count
- Complexity enabled
- Lockout threshold

The test reports the variety of settings across all policies.

#### Related Tests

- `Test-MtAdFineGrainedPolicyCount` - Counts the number of FGPPs
- `Test-MtAdFineGrainedPolicyAppliesTo` - Shows which users/groups each policy applies to

## Details

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

| Field | Value |
| --- | --- |
| Test ID | AD-FGPP-02 |
| Severity | Info |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Password policy |
| Area | Authentication |
| Resource type | Policy |
| MITRE ATT&CK | None |
| PowerShell test | [Test-MtAdFineGrainedPolicyValueCount](https://github.com/maester365/maester/blob/main/tests/ad/password-policy/Test.AD-FGPP-02.ps1) |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:msDS-PasswordSettings:ReadProperty |

</details>

## Source

- Test: [`tests/ad/password-policy/Test.AD-FGPP-02.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/password-policy/Test.AD-FGPP-02.ps1)
- Documentation: [`tests/ad/password-policy/Test.AD-FGPP-02.md`](https://github.com/maester365/maester/blob/main/tests/ad/password-policy/Test.AD-FGPP-02.md)
