API Reference
WmiFilterEvaluator
Light-weight evaluator for common GPO WMI filter predicates used in AD (no external WMI calls). Supports Win32_ComputerSystem.DomainRole and basic OS/ProductType style checks when present. Unknown clauses are ignored by default; if a query contains only unknowns, it evaluates to true.
Inheritance
- Object
- WmiFilterEvaluator
Methods
AppliesToContext(System.String domainName, System.String gpoDn, ADPlayground.Gpo.Policy.GpoTargetComputerContext context) #Returns true when the WMI filter linked to the given GPO applies to the target context. When no WMI filter is linked, returns true.
Parameters
- domainName System.String
- gpoDn System.String
- context ADPlayground.Gpo.Policy.GpoTargetComputerContext
HasWmiFilter(System.String domainName, System.String gpoDn) #Returns true when a WMI filter is linked to the specified GPO (gPCWMIFilter is populated). Failures are treated as no WMI filter to avoid blocking applicability.
Parameters
- domainName System.String
- gpoDn System.String
TryAppliesToContextWithDetails(System.String arg1, System.String arg2, ADPlayground.Gpo.Policy.GpoTargetComputerContext arg3) #Returns whether the WMI filter applies, whether access was denied, and whether evaluation used runtime WMI or heuristics.
Parameters
- arg1 System.String
- arg2 System.String
- arg3 ADPlayground.Gpo.Policy.GpoTargetComputerContext
TryAppliesToContextWithStatus(System.String arg1, System.String arg2, ADPlayground.Gpo.Policy.GpoTargetComputerContext arg3) #Enhanced variant that returns whether the WMI filter applies and whether access was denied during evaluation. Never blocks on errors or denied: returns Applies=true, AccessDenied=true to keep evaluation non-blocking.
Parameters
- arg1 System.String
- arg2 System.String
- arg3 ADPlayground.Gpo.Policy.GpoTargetComputerContext
TryHasWmiFilterWithStatus(System.String arg1, System.String arg2) #Enhanced variant that returns whether a filter link exists and whether access was denied during read.
Parameters
- arg1 System.String
- arg2 System.String