Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

WMI Filter on various computer names

$
0
0

I am trying to create a WMI Filter for a GPO using  Win32_ComputerSystem using Name to filter the results.  The problem is when I try to add multiple values with Name I get a syntax error.

The statement looks like this

Select * From Win32_ComputerSystem where Name LIKE "ABCD%" or "EFGH%" or "IJKL%" AND Version like "6.%" or ProductType="3"

I get a syntax error when I tried to use the multiple Names.  If I remove "EFGH%" and "IJKL%" it works fine.  What am I missing?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>