GROUP POLICY COURSE · PAGE 3 OF 14

Scope: links, inheritance, security filtering and WMI filters

Links and link order, Block Inheritance and Enforced, security filtering after MS16-072, WMI filters with tested queries, item-level targeting and loopback processing.

Block Inheritance and Enforced

ControlSet onEffect
Block InheritanceDomain or OUGPOs linked above are ignored, except Enforced links. Stored in gPOptions = 1.
EnforcedA linkThe 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 purge for 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.

TargetQuery (namespace root\CIMv2)
Windows 11 workstationsSELECT * FROM Win32_OperatingSystem WHERE Version LIKE "10.0.2%" AND ProductType = "1"
Domain controllersSELECT * FROM Win32_OperatingSystem WHERE ProductType = "2"
Member serversSELECT * FROM Win32_OperatingSystem WHERE ProductType = "3"
Windows Server 2025SELECT * FROM Win32_OperatingSystem WHERE BuildNumber = "26100" AND ProductType <> "1"
64-bit onlySELECT * 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-Som objects with the ActiveDirectory module, and attach them with (Get-GPO "name").WmiFilter in 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

  1. OU placement: the fastest and clearest. Design OUs by object type and management need first.
  2. Security filtering: when a subset in the same OU needs the GPO.
  3. Item-level targeting: when a preference item, not a whole GPO, differs.
  4. WMI filter: when the condition is about the machine itself (OS, hardware) and can't be expressed with OUs or groups.
  5. Block Inheritance / Enforced: last, for real exceptions.

References: MS16-072 (KB3163622), GPMC.