Skip to main content
Version: 2.2.1-preview

AD-GPO-03 - GPO stale-before-2020 count should be retrievable

Overview​

Group Policy Objects (GPOs) that have not been modified for a long time can become "stale". Stale GPOs may contain outdated security configurations, which can create security gaps if they no longer match your current security baselines.

Security Recommendation​

Regularly review GPOs that have not changed recently. Consider:

  • Validating that security settings are still required and aligned with your current baseline
  • Removing or updating policies that are no longer used or no longer appropriate
  • Establishing a review cadence for long-lived policies

How the Test Works​

This test uses Get-MtADGpoState to retrieve cached GPO data. It filters GPOs where ModificationTime is earlier than 2020-01-01 and calculates:

  • Total number of GPOs
  • Number and percentage of stale GPOs
  • Test-MtAdGpoTotalCount - Counts the total number of GPOs

Test Metadata​

FieldValue
Test IDAD-GPO-03
SeverityInfo
SuiteActive Directory
CategoryAD.GPO
PowerShell testTest-MtAdGpoChangedBefore2020Count
TagsAD, AD-GPO-03, AD.GPO

Source​

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