# GPO blocked inheritance count should be compliant

GPO inheritance blocking controls whether settings from parent Organizational Units (OUs) flow down to child OUs.

Source: https://maester.dev/docs/tests/AD-GPOL-05

<!-- This file is generated by website/scripts/generate-test-docs.mjs. Do not edit manually. -->

<div class="test-byline"><div class="test-byline-avatars"><a class="test-byline-avatar test-byline-avatar--author" href="/contributors/soulemike" title="Michael Soule · Original author"><img src="https://github.com/soulemike.png" alt="Michael Soule" width="28" height="28" loading="lazy" decoding="async" /></a></div><div class="test-byline-meta"><span class="test-byline-text">Contributed by <a href="/contributors/soulemike">Michael Soule</a></span><a class="test-byline-link" href="/contributors">All contributors →</a></div></div>

<p class="test-part">Part of <a href="/docs/tests/ad">Active Directory</a> · Active Directory · Group Policy · <a href="/docs/tests">All checks</a></p>

```powershell title="Run this check"
Invoke-Maester -TestId AD-GPOL-05
```

## Overview

GPO inheritance blocking controls whether settings from parent Organizational Units (OUs) flow down to child OUs.
When inheritance is blocked on an OU, policies from higher-level scopes won’t apply as expected.

For security assessments, this matters because inheritance blocking can create **security gaps**:

- **Parent OU policies won’t apply** to the affected OUs.
- Security baselines can become inconsistent across the directory.
- “Sticky” configurations at lower levels can persist unnoticed.

#### Control Type

**Operational**

#### Security Recommendation

- **Review blocked inheritance regularly**: confirm each OU blocking inheritance has a documented business/technical justification.
- **Ensure compensating controls exist**: if parent policies won’t apply, equivalent security settings must be configured directly where needed.
- **Monitor and alert on changes**: inheritance blocking is often changed unintentionally during OU restructuring or delegation work.

#### How the Test Works

This test retrieves Organizational Units (OUs) from Active Directory using:

1. `Get-ADOrganizationalUnit -Filter * -Properties gpOptions`
2. Counts OUs where **`gpOptions -eq 1`** (where `gpOptions` indicates GPO inheritance blocking).
3. Reports the total OU count, the number of blocked OUs, and the blocked ratio in Markdown.

#### Related Tests

- `Test-MtAdGpoEnforcedCount` - Counts enforced (inheritance-blocking) link entries
- `Test-MtAdGpoLinkedCount` - Counts GPOs actively linked to apply settings
- `Test-MtAdGpoUnlinkedCount` - Identifies unlinked/orphaned GPOs

## Details

<details>
<summary>Every attribute of this check</summary>

| Field | Value |
| --- | --- |
| Test ID | AD-GPOL-05 |
| Severity | Medium |
| 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-MtAdGpoBlockedInheritanceCount](https://github.com/maester365/maester/blob/main/tests/ad/gpo/Test.AD-GPOL-05.ps1) |
| Services | ActiveDirectory |
| Permissions | ActiveDirectory:Ldap:groupPolicyContainer.gPCFileSysPath:ReadProperty, ActiveDirectory:File:SYSVOL:Read |

</details>

## Source

- Test: [`tests/ad/gpo/Test.AD-GPOL-05.ps1`](https://github.com/maester365/maester/blob/main/tests/ad/gpo/Test.AD-GPOL-05.ps1)
- Documentation: [`tests/ad/gpo/Test.AD-GPOL-05.md`](https://github.com/maester365/maester/blob/main/tests/ad/gpo/Test.AD-GPOL-05.md)
