Jump to content

Recommended Posts

Posted

Hi All

 

Is it possible to have an "OR" variable in a WMI filter and, if so, what syntax should be used.

 

My current filter syntax is: Select name from Win32_ComputerSystem WHERE name LIKE "%T2-%" so any computer named T2- applies the filter. I also want computers named T3- and T4- to apply the same filter, can this be done?

 

Paul

Posted
@Steve21 So would the syntax be: Select name from Win32_ComputerSystem WHERE (name LIKE "%T2-%") OR (name LIKE "%T3-%") OR (name LIKE "%T4-%")

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...