AD-GPOREP-14 - GPO enforcement count should be retrievable
Overviewโ
Test-MtAdGpoEnforcementCountโ
Counts the number of GPOs that have enforced GPO links.
Why This Test Mattersโ
- Detective control: counts GPOs with enforced links which indicates explicit policy delivery is configured.
Control Typeโ
Operational
Security Recommendationโ
- Ensure enforcement aligns with security policy; adjust as needed for least privilege and correct policy propagation.
How the Test Worksโ
- Fetches GPO state, filters for HasEnforcement, and reports total GPOs, number with enforcement, and the ratio.
Related Testsโ
Test-MtAdGpoEnforcementCount.
Related linksโ
- Microsoft Learn - Group Policy management
- ANSSI checkpoint: https://www.anssi.gouv.fr/
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AD-GPOREP-14 |
| Severity | Info |
| Suite | Active Directory |
| Category | AD.GPOState |
| PowerShell test | Test-MtAdGpoEnforcementCount |
| Tags | AD, AD-GPOREP-14, AD.GPOState |
Sourceโ
- Pester test:
tests/ad/gpostate/Test-MtAdGpoEnforcementCount.Tests.ps1 - PowerShell source:
powershell/public/ad/gpostate/Test-MtAdGpoEnforcementCount.ps1
