Relevancy to omit certain computer names

(imported topic written by ErinC91)

Hi, I’m trying to create a relevance clause to ensure a custom action never gets applied to certain machine names.

I have something like the following but it’s always coming out as TRUE on the machine names I want omitted regardless. (using QnA)

(name of operating system = “WinXP”) AND computer name != (“PC1” OR “PC2”)

I also tried

(name of operating system = “WinXP”) AND ((computer name != “PC1”) OR (computer name != “PC2”) OR (computer name != “PC3”))

I feel I’m missing something fairly obvious here. Please assist, thanks.

(imported comment written by NoahSalzman)

Try:

(name of operating system = "WinXP)

AND

((it != “foo” AND it != “bar” AND it != “baz”) of (computer name as lowercase))

You need ANDs when checking the names.

Also, if you do everything in lowercase you avoid any typos with the list of machine names.

(imported comment written by ErinC91)

Thanks Noah, that works great. I knew it was something obvious!

In this instance, the inclusion of lowercase un-necessarily complicates it, since I exported the machine names from BigFix into Excel, so they were accurate. Testing it now and it looks fine, thanks again.