WMI Filtering
Cheat sheet · https://pcornel.dk/topic.php?topic=3273
Answer
Each GPO can be linked to one WMI filter, while one WMI filter can be reused by multiple GPOs. The filter must evaluate true on the target for the GPO to remain applicable.
Remember
- WMI filtering is evaluated on the destination computer.
- A WMI filter can add processing cost, especially with broad/slow queries.
- A false/error result excludes the GPO even if link scope and security filtering are correct.
- WMI filtering is GPO-level, not per individual setting inside the GPO.
First checks
gpresult /h report.html— RSoP report for user and computergpupdate /force— refresh policyGet-GPO -All | Select DisplayName,GpoStatus— GPOs in the domainGet-GPInheritance -Target '<OU DN>'— links and inheritance for an OUGet-WinEvent -LogName Microsoft-Windows-GroupPolicy/Operational -MaxEvents 50— processing events
Verify in this order
WMI filter evaluated on client → true applies / false denies
Where it usually breaks
First mismatch in forest/domain/object identity → authoritative DC/source policy → replication/KDC/GP processing → client token/effective policy → target resource → event/audit verification; preserve identity/native error/pre-state before mutation.
Group Policy → WMI Filtering reference map
| Boundary | Meaning | Evidence limit |
|---|---|---|
| WMI query | Target condition | can be slow/error |
| True | GPO remains eligible | still subject to other processing |
| False | GPO filtered out | not a processing failure |
| Error/timeout | May prevent applicability | inspect WMI health/query |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3273