Skip to content
Sponsor
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

GPO total count should be retrievable

AD-GPO-01InfoActive DirectoryGroup Policy

Part of Active Directory · Active Directory · Group Policy · All checks

Run this check
Invoke-Maester -TestId AD-GPO-01

Understanding the total number of Group Policy Objects (GPOs) in your Active Directory environment is crucial for several security and operational reasons:

  • Policy Sprawl: A large number of GPOs can indicate policy sprawl, making it difficult to manage and troubleshoot policy conflicts
  • Performance Impact: Each GPO adds processing overhead during user logon and computer startup
  • Security Complexity: More GPOs mean more potential attack surfaces if any contain misconfigurations
  • Audit Requirements: Compliance frameworks often require understanding of policy scope and distribution

Operational

Regularly audit your GPO inventory and consolidate redundant or overlapping policies. Consider:

  • Merging GPOs with similar settings
  • Removing unused or obsolete GPOs
  • Documenting the purpose of each GPO
  • Implementing a naming convention for better organization

This test retrieves all Group Policy Objects from Active Directory and counts the total number. It uses the Get-MtADGpoState function to access cached GPO data.

  • Test-MtAdGpoUnlinkedCount - Identifies GPOs that are not linked to any location
  • Test-MtAdGpoCreatedBefore2020Count - Identifies potentially outdated GPOs
  • Test-MtAdGpoLinkedCount - Counts GPOs that are actively linked
Every attribute of this check
FieldValue
Test IDAD-GPO-01
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureGroup Policy
AreaInfrastructure hardening
Resource typeGroupPolicy
MITRE ATT&CKNone
PowerShell testTest-MtAdGpoTotalCount
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:groupPolicyContainer.gPCFileSysPath:ReadProperty, ActiveDirectory:File:SYSVOL:Read