Run Action if relevance result is NOT contained in file on system

I have an action that will log the current network adapters and add them to a file on the client machine, so I can read it in with a custom property later. It does a unique check to filter out duplicates. It works and I am testing it now.

https://bigfix.me/fixlet/details/6135

This resolves an issue we had, but I do not like that it is set to run regardless of data changes. What I want to figure out is a way to check the results of “mac addresses of adapters of network” against the file, and if all of the MAC’s already exist in the file, then quit. But if there is a MAC in “mac addresses of adapters of network” that is not in the list file, then run the action to add to it.

Anybody doing something similar or have any ideas?

If anybody else ends up using this… this relevance will be true if there are MAC’s on the system that are not in the file.

set of (lines of file "x" of folder (y as string)) does not contain set of (mac addresses of adapters of network)
1 Like