Links and link order
A GPO does nothing until it is linked to a site, the domain or an OU. One GPO can be linked in many places, and every link points to the same settings. Containers (CN=Users, CN=Computers) can't have links, so objects left there only get site and domain GPOs: move new computers and users into OUs, or redirect the defaults with redircmp and redirusr.
- Link order: in one container, link order 1 has the highest precedence (applied last).
- Link enabled: untick to stop a link without deleting it.
- GPO status: disable the user or the computer half of a GPO (or both). Disabling an unused half also saves processing time.
- Site links are stored in the configuration partition and need a DC in the domain that holds the GPO to be reachable. Use them sparingly.
Block Inheritance and Enforced
| Control | Set on | Effect |
|---|---|---|
| Block Inheritance | Domain or OU | GPOs linked above are ignored, except Enforced links. Stored in gPOptions = 1. |
| Enforced | A link | The GPO can't be blocked below this point and its settings win over GPOs linked lower down. |
Enforced GPOs reverse the normal order: an enforced GPO higher up wins over an enforced GPO lower down. Use both controls rarely; most designs that need them are better solved with a cleaner OU structure. GPMC's Group Policy Inheritance tab on an OU shows the final precedence list.
Security filtering
A GPO applies to a user or computer only if that account has Read and Apply group policy on the GPO. New GPOs grant both to Authenticated Users. To target a group, add the group in the Security Filtering box and remove Authenticated Users.
Since MS16-072 (June 2016), clients read user GPOs with the computer's credentials. If you remove Authenticated Users, give Domain Computers (or Authenticated Users) Read only on the Delegation tab, or the GPO silently stops applying. GPMC warns about this when you remove Authenticated Users.
- Computer settings filter on the computer account; user settings filter on the user account.
- Group membership comes from the access token: a computer must restart and a user must sign in again after being added to a filtering group (or purge tickets with
klist -li 0x3e7 purgefor the computer). - A Deny Apply group policy entry excludes a group and wins over Allow. It doesn't show in the Security Filtering box, only on the Delegation > Advanced tab, so document it.
# Target "GG-Finance-PCs" and keep the MS16-072 Read for computers
Set-GPPermission -Name "WS - Finance" -TargetName "GG-Finance-PCs" -TargetType Group -PermissionLevel GpoApply
Set-GPPermission -Name "WS - Finance" -TargetName "Authenticated Users" -TargetType Group -PermissionLevel GpoRead -Replace
WMI filters
A WMI filter is a WQL query that the client runs before applying the GPO. If the query returns nothing, the GPO is skipped (both halves). A GPO can have one WMI filter; one filter can be used by many GPOs. Filters are stored as msWMI-Som objects under CN=SOM,CN=WMIPolicy,CN=System.
| Target | Query (namespace root\CIMv2) |
|---|---|
| Windows 11 workstations | SELECT * FROM Win32_OperatingSystem WHERE Version LIKE "10.0.2%" AND ProductType = "1" |
| Domain controllers | SELECT * FROM Win32_OperatingSystem WHERE ProductType = "2" |
| Member servers | SELECT * FROM Win32_OperatingSystem WHERE ProductType = "3" |
| Windows Server 2025 | SELECT * FROM Win32_OperatingSystem WHERE BuildNumber = "26100" AND ProductType <> "1" |
| 64-bit only | SELECT * FROM Win32_OperatingSystem WHERE OSArchitecture LIKE "64%" |
| Laptops (has a battery) | SELECT * FROM Win32_Battery |
| Virtual machines (Hyper-V) | SELECT * FROM Win32_ComputerSystem WHERE Model = "Virtual Machine" |
Windows 11 and Windows 10 both report version 10.0, so filter Windows 11 by build: builds 22000 and higher. Windows Server 2025 and Windows 11 24H2 share build 26100, so combine build with ProductType. Test every query on a target before linking:
Get-CimInstance -Query 'SELECT * FROM Win32_OperatingSystem WHERE ProductType = "3"'
- WMI filters cost time on every refresh. Prefer OU design and security filtering; keep queries simple and avoid slow classes such as
Win32_Product. - The GroupPolicy module has no WMI filter cmdlets. Create filters in GPMC, or as
msWMI-Somobjects with the ActiveDirectory module, and attach them with(Get-GPO "name").WmiFilterin a script.
Item-level targeting (Preferences)
Each preference item can carry its own conditions: security group, OU, site, IP address range, operating system, computer or user name, registry match, WMI query, battery present, language, time range and more, combined with AND, OR and NOT. Use it to keep one "Drive maps" GPO instead of one GPO per department. Keep targeting simple: dozens of WMI or LDAP queries per item slow down logon.
Loopback and scope
Loopback changes the scope of user settings to the computer's OU path. Merge adds the computer-path user settings on top; Replace uses only those. It is the standard for RDS session hosts, Citrix VDAs, kiosks and classroom PCs. See Fundamentals.
Choosing the right scoping tool
- OU placement: the fastest and clearest. Design OUs by object type and management need first.
- Security filtering: when a subset in the same OU needs the GPO.
- Item-level targeting: when a preference item, not a whole GPO, differs.
- WMI filter: when the condition is about the machine itself (OS, hardware) and can't be expressed with OUs or groups.
- Block Inheritance / Enforced: last, for real exceptions.
References: MS16-072 (KB3163622), GPMC.