Skip to main content
Version: 2.3.0

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.
  • Test-MtAdGpoEnforcementCount.

Test Metadataโ€‹

FieldValue
Test IDAD-GPOREP-14
SeverityInfo
SuiteActive Directory
CategoryAD.GPOState
PowerShell testTest-MtAdGpoEnforcementCount
TagsAD, AD-GPOREP-14, AD.GPOState

Sourceโ€‹

  • Pester test: tests/ad/gpostate/Test-MtAdGpoEnforcementCount.Tests.ps1
  • PowerShell source: powershell/public/ad/gpostate/Test-MtAdGpoEnforcementCount.ps1