Skip to content
Tutorials Center
My learning

Topics

Lesson 21 of 38 ยท Group Policy and Management

GPO Links, Inheritance, Enforced and Block Inheritance

Understand GPO link order, inheritance, the Enforced option and Block Inheritance, and learn how to work out which Group Policy wins when several levels conflict.

Once you have more than a handful of GPOs, the question stops being "what does this policy do" and becomes "which policy wins here". The answer depends on three controls: the link order inside a container, the Enforced flag on a link, and Block Inheritance on an OU. Used carefully they give you a clean design. Used carelessly they create a puzzle nobody can solve at two in the morning.

This lesson builds on the LSDOU order and models the rules in Python so you can predict results before you change anything.

Several GPOs can be linked to the same site, domain or OU. They are shown in the Group Policy Management Console (GPMC) in a numbered list called Link Order. Number 1 has the highest precedence. Processing goes from the bottom of the list upward, so the GPO at position 1 is applied last and wins conflicts.

If an OU has links in this order:

Link order GPO Sets
1 Browser Lockdown HomePage = intranet
2 Corp Defaults HomePage = search, Zoom = 100

then HomePage is intranet (link 1 wins) and Zoom is 100 (no conflict, so it accumulates).

Moving a link up or down in the list is the simplest way to change which GPO wins. It is a property of the link, not of the GPO, so the same GPO can have different link orders in different OUs.

Inheritance

By default an OU inherits every GPO linked above it: site, domain and all parent OUs. The effective set of GPOs for an object is the inherited set plus the links directly on its own OU. In GPMC, the Group Policy Inheritance tab of an OU lists them with their precedence numbers.

Block Inheritance

An administrator can set Block Inheritance on an OU (or the domain). From that point down, GPOs linked above are not inherited. This is useful for a special OU such as a test lab that must not receive production settings.

Two limits matter:

  • Block Inheritance never stops a link marked Enforced.
  • It blocks everything from above at once. You cannot block a single inherited GPO, so heavy use of it is a design smell. Prefer security filtering when you want to exclude specific objects.

When a link is marked Enforced, two things change:

  1. The link cannot be blocked by Block Inheritance below.
  2. Its precedence flips: among conflicting settings, an Enforced GPO higher in the tree beats a normal GPO lower in the tree. If several enforced links conflict, the one closest to the top (earliest in LSDOU) wins.

Think of Enforced as "this rule is not negotiable". A security baseline linked and enforced at the domain level will win over whatever a delegated OU administrator configures.

A resolver you can run

The model below applies the rules in the right order: it walks the OU path from the top, handles Block Inheritance by dropping non-enforced GPOs gathered so far, applies normal GPOs top-down (so the nearest one wins), and finally applies enforced GPOs bottom-up so the highest enforced one wins.

Python GPO precedence resolver (stand-in)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Read the result carefully. The lab OU blocks inheritance, so Corp Defaults is dropped and HomePage is intranet. The baseline is enforced, so it survives the block and its SMB1 = off beats the lab GPO's on. Zoom comes from the lab GPO because the corp GPO that set it was blocked.

Predicting the order from a list

Reading link orders by eye is error-prone, so a small helper that prints the application order for one container is handy:

Python Application order of one container

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Good design habits

  • Keep few levels of OUs and few GPOs per object. Every extra GPO costs processing time at sign-in.
  • Link GPOs as high as sensible and use security filtering to narrow them, rather than copying a GPO into many OUs.
  • Reserve Enforced for true baselines (security, auditing). Overusing it removes the ability of OU administrators to customise.
  • Avoid Block Inheritance except for clearly separate environments.
  • Name GPOs by purpose and scope, for example SEC - Workstation Baseline and USR - Drive Maps Finance.
  • Document exceptions. Output from GPMC reports ("Save Report") is the best record of what applies where.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Two GPOs are linked to the same OU with link orders 1 and 2 and conflict on a setting. Which wins?

    Link order 1 is processed last and therefore wins. Lower numbers have higher precedence.
  2. 2. What does Block Inheritance do to a link that is marked Enforced above?

    Enforced links cannot be blocked.
  3. 3. Which approach excludes a single GPO from one group of computers without blocking everything else?

    Security filtering limits who the GPO applies to; Block Inheritance blocks all non-enforced GPOs from above.
  4. 4. Where is the link order property stored?

    Links live in the gPLink attribute of the site, domain or OU, which is why the same GPO can have different orders in different places.

Summary

  • Within a container, link order 1 wins; across containers, the nearest OU wins for normal links.
  • Block Inheritance drops all non-enforced GPOs coming from above.
  • Enforced links ignore blocking and, among enforced links, the highest one in the tree wins.
  • Use filtering and sensible placement instead of heavy blocking, and document exceptions.

Next: Security Filtering, WMI Filters, Preferences and Loopback