As you can see, There is a DeviceID with “VEN_1022” in the string. Could someone help with what the relevance would look like to see if a computer has a DeviceID with the “VEN_1022” string.
You are very close… There are basically two ways to do this:
Use WMI to do the filtering for you using a “where” clause in the same way you mentioned (but note that the “%” need to be escaped by using “%25” because relevance uses percent encoding):
(string values of selects (“DeviceID from Win32_PnPEntity WHERE DeviceID LIKE ‘%25VEN_1022%25’”) of WMI)
or (depending on what value you want back):
(exists string values of selects (“DeviceID from Win32_PnPEntity WHERE DeviceID LIKE ‘%25VEN_1022%25’”) of WMI)
This should work well for you, but note that our experiences tell us that the WMI “LIKE” operator doesn’t work on certain Windows OSes (Win2000 and below)… In cases like this or when you want to do more filtering of the data, you can do it in relevance:
it whose (it as lowercase contains “ven_1022”) of (string values of selects (“DeviceID from Win32_PnPEntity”) of WMI)