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) →

Disabled GPO link count should be retrievable

AD-GPOL-02InfoActive DirectoryGroup Policy

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

Run this check
Invoke-Maester -TestId AD-GPOL-02

Disabled GPO links represent a potential security and operational concern in Active Directory environments:

  • Policy Gaps: Disabled links mean GPOs that are configured but not applied, potentially leaving systems without intended security controls
  • Configuration Drift: Disabled links may indicate temporary troubleshooting that was never reverted
  • Audit Challenges: Disabled links create confusion during security audits about which policies are actually enforced
  • Compliance Risks: Unintentionally disabled links can result in non-compliance with security baselines

Regularly review disabled GPO links and either:

  • Re-enable links that were accidentally disabled
  • Remove links that are no longer needed
  • Document the justification for intentionally disabled links
  • Ensure critical security policies are not inadvertently disabled

This test retrieves GPO link information from Active Directory and counts:

  • Total number of GPO links
  • Number of enabled links (state 0)
  • Number of disabled links (state 1)
  • Number of enforced links (state 2)

The gPLink attribute is parsed to determine the state of each link.

  • Test-MtAdGpoEnforcedCount - Counts enforced GPO links
  • Test-MtAdGpoLinkedCount - Counts distinct GPOs with links
  • Test-MtAdGpoUnlinkedCount - Identifies GPOs with no links
Every attribute of this check
FieldValue
Test IDAD-GPOL-02
SeverityInfo
SuiteActive Directory
ProductActive Directory
FeatureGroup Policy
AreaInfrastructure hardening
Resource typeGroupPolicy
MITRE ATT&CKNone
PowerShell testTest-MtCheckADGPOL02
ServicesActiveDirectory
PermissionsActiveDirectory:Ldap:groupPolicyContainer.gPCFileSysPath:ReadProperty, ActiveDirectory:File:SYSVOL:Read