Filtering one specific NIC

(imported topic written by mgraepel)

Hey folks, brand new to TEM and I’m looking to roll out an updated version of VPN software. Originally somebody else set up relevance that checked to see if the old version was installed and checked for the presence of certain IP ranges specific to VPN. That worked for the old version, but we now have people that are connected to VPN receiving this latest version and it’s uninstalling their old version, which obviously disconnects them. I know there are multiple issues here, but what I’d really like to get is a relevance check that just throws a true/false statement for the presence of a NIC description that starts with “Cisco.” The line
description of adapter of network starts with "Cisco"
reports True, but it throws the error “Singular expression refers to non-unique object” in FixletDebugger. I tried to filter the results as suggested in
this thread
but wmi seems to report the presence of all network adapters, whether or not they are active. If I do a relevance check to see if the software is running, that doesn’t work because the user may not be actively connected. If anyone has any suggestions on how to filter my results to make the NIC unique or even to trash this entire process and approach it from a different direction, I would greatly appreciate it.

(imported comment written by Mark_Macherey)

the error “Singular expression refers to non-unique object” means there’s more then 1 answer.
try this and see whats returned

Q: descriptions of adapters whose (description of it as lowercase starts with “cisco”) of network

Q: exists adapter whose (description of it as lowercase starts with “cisco”) of network

A: True

T: 6.862 ms

Q: exists adapter whose (description of it as lowercase starts with “cisco” and address of it != “0.0.0.0”) of network

A: True

T: 7.715 ms

(imported comment written by mgraepel)

Worked like a charm. Thank you!