Pcornel
Windows · Group Policy

WMI Filtering

Cheat sheet · https://pcornel.dk/topic.php?topic=3273

Back to the Topic

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 computer
  • gpupdate /force — refresh policy
  • Get-GPO -All | Select DisplayName,GpoStatus — GPOs in the domain
  • Get-GPInheritance -Target '<OU DN>' — links and inheritance for an OU
  • Get-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

BoundaryMeaningEvidence limit
WMI queryTarget conditioncan be slow/error
TrueGPO remains eligiblestill subject to other processing
FalseGPO filtered outnot a processing failure
Error/timeoutMay prevent applicabilityinspect 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

Confirmation

Confirm action

Continue?