You could add an expression to exclude when computer name is not X or Y
(computer name as lowercase is not contained by set of ("computer1";"computer2"))
Another idea for the IP checking, a) you could do a string compare against a string set of address instead of address of it as string = “10.10.12.171” or address of it as string = “10.10.12.172”
and if you cast the address to a string then a version you can then use the build revision inspector to compare the last octet of the IP addresses. So all in all
exists addresses whose ((it as string is contained by set of ("10.10.12.171";"10.10.12.172")) or (build revision of (it as string as version) as string is contained by set of ("39";"173";"174"))) of adapters of network and (computer name as lowercase is not contained by set of ("computer1";"computer2"))
You could also add an AND to exclude by IP address in this type of approach too.
exists addresses whose (((it as string is contained by set of ("10.10.12.171";"10.10.12.172")) or (build revision of (it as string as version) as string is contained by set of ("39";"173";"174"))) and (it as string is not contained by set of ("192.168.0.173";"192.168.0.174"))) of adapters of network
There are probably other approaches too. I find using string sets as a nice way to reduce to number of OR comparisons.