Quantcast
Channel: Group Policy forum
Viewing all articles
Browse latest Browse all 19997

Multiple WMI Filters

$
0
0

Hi
I'm trying to create two WMI queries for one WMI filter to apply to a GPO.
As the GUI lets you do this I would assume its a valid operation.
I have to create 2 queries as the namespace is different for each query.

Query 1. Is OS Windows 10
   Root namespace = root\cimV2
select Version, ProductType from Win32_OperatingSystem where Version like "10.%" and ProductType = "1"

Query 2. Does the computer belong to this OU? "ou=Staff,dc=company,dc=co,dc=uk"
   Root namespace = root\RSOP\Computer
Select * From RSOP_Session Where SOM like '%ou=Staff,dc=company,DC=co,dc=uk'

I have both of these working on their own but when I add the two of them to the WMI editor (which allows you to do this) they don't work.

So ...
Q1. Is this allowed (I assume it is) Maybe it's not working because the namespace differs
Q2. Does the GPO engine AND these two queries? I'd prefer to OR them if somehow possible.

Any help most appreciated ....



Viewing all articles
Browse latest Browse all 19997

Trending Articles