Question : WMI GPO Filters

I'm trying to create a WMI filter that will search the computer name, using the "not like" expression, but the Filter seems to only read the 1st query, and nothing else after that. As an example;

SELECT * FROM Win32_ComputerSystem where (not Caption like '%SMS%') or (not Caption like '%ISA%')

The filter works properly for the %SMS% named machines, but not for the %ISA% machines. I would assume my syntax is just wrong.

Any ideas?

Answer : WMI GPO Filters

I found the solution. It appears it has to be a line by line thing without an OR statement.

root\cimv2;SELECT * FROM Win32_ComputerSystem where not Caption like "%SMS%"
root\cimv2;SELECT * FROM Win32_ComputerSystem where not Caption like "%ISA%"
Random Solutions  
 
programming4us programming4us