GPO unlinked target count should be compliant
Part of Active Directory · Active Directory · Group Policy · All checks
Invoke-Maester -TestId AD-GPOL-03Overview
Section titled “Overview”Active Directory targets (OUs, the domain root, and sites) without any Group Policy links may indicate incomplete security policy coverage.
When a target has no GPO links, security and configuration baselines may not be applied consistently—creating gaps that attackers or misconfigurations can exploit.
Control Type
Section titled “Control Type”Operational
Security Recommendation
Section titled “Security Recommendation”Investigate any unlinked targets and remediate the policy coverage gap:
- Confirm the target should receive baseline policies (security requirements, ownership, and intended design).
- Add the appropriate GPO links (typically security baselines and auditing policies) to restore consistent enforcement.
- Review GPO inheritance/blocking design to ensure links are not unintentionally prevented.
- Maintain a deployment cadence so new OUs/domains/sites do not remain unlinked.
Unlinked targets can represent missing or outdated configurations, so treat results as potential security configuration gaps.
How the Test Works
Section titled “How the Test Works”This test uses Get-MtADGpoState (and its cached GPOLinks/AD data) and:
- Enumerates all OUs using
Get-ADOrganizationalUnit. - Reads the
gPLinkvalue for the domain root. - Identifies site link objects from
Get-MtADGpoState($gpoState.SiteContainers). - Counts each target whose
gPLinkvalue contains no GPO GUID references (i.e., no GPO links).
Related Tests
Section titled “Related Tests”Test-MtAdGpoUnlinkedCount- Identifies GPOs that are not linked to any locationTest-MtAdGpoLinkedCount- Counts distinct GPOs that are actively linkedTest-MtAdGpoUnlinkedDetails- Returns details of unlinked GPOsTest-MtAdGpoLinkedOUCount- (if implemented) OUs with GPO links
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | AD-GPOL-03 |
| Severity | Low |
| Suite | Active Directory |
| Product | Active Directory |
| Feature | Group Policy |
| Area | Infrastructure hardening |
| Resource type | OrganizationalUnit |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | None |
| PowerShell test | Test-MtAdGpoUnlinkedTargetCount |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:groupPolicyContainer.gPCFileSysPath:ReadProperty, ActiveDirectory:File:SYSVOL:Read |
Source
Section titled “Source”- Test:
tests/ad/gpo/Test.AD-GPOL-03.ps1 - Documentation:
tests/ad/gpo/Test.AD-GPOL-03.md
About this check
- Severity
- Low
- Effort to fix
- Medium
- Impact on users
- Low
- Product
- Active Directory
- Feature
- Group Policy
- Area
- Infrastructure hardening
- Suite
- Active Directory