Targeting specific serials numbers

(imported topic written by doubleminus91)

How would I write relevance to focus on numerous, specific serial #s?

Does not work:

if (exists wmi) then (string values of selects “IdentifyingNumber from Win32_ComputerSystemProduct” of wmi equals “Serial number here” as string) else (“N/A”)

Am I on the right track? I was just going to chain together a bunch of these statements once I had one figured out.

(imported comment written by doubleminus91)

Just used a thread a few beneath this one for guidance.

if (exists wmi) then ((if ((string value of (selects “IdentifyingNumber from Win32_ComputerSystemProduct” of wmi)) = “9D959F1”) then true ELSE False) as string) else “N/A”

That works. Probably a better way to do this, but it’s a start…

(imported comment written by BenKus)

Here is a way to do it:

q: (";serialnum1;serialnum2;serialnum3;" contains (";" & it & “;”) of (string value of selects “IdentifyingNumber from Win32_ComputerSystemProduct” of wmi))
A: False

Ben

(imported comment written by doubleminus91)

That looks much more manageable. Thanks!

The (";" & it & “;”) excludes the delimiting character…interesting…