Possible to use 'NOT' in K1000 Custom Inventory?
I wanted to monitor machines based on if a registry key is set. Is it possible to use a not statement when writing custom inventory syntax? In other words, I want the software record to show installed if a registry value is not exactly "blah...."
I wouldn't mind switching it up and having it show something as not installed, except that I also wanted to make check for another value to exist. In other words, I want it to show the software as installed if RegKeyA is NOT "blah..." and RegKeyB IS "bleh..."
I hope this makes sense. Any ideas would be very helpful!
0 Comments
[ + ] Show comments
Answers (4)
Answer Summary:
Please log in to answer
Posted by:
SMal.tmcc
9 years ago
Posted by:
dean.allmann
9 years ago
I think you put the NOT in front of the comparison. For instance WHERE NOT RegKeyA = "blahblahblah".
Hope that helps.
Hope that helps.
Comments:
-
Sorry, I don't think I understand. The syntax of the rule is RegistryValueEquals(KEY, VALUE, DATA). Where would the NOT go? Or would I need to do a completely different type of Custom Inventory Rule? - drew.sartorius 9 years ago
-
My answer would be for a SQL statement in a Smart Label. Now, I'm not sure if KACE collects the level of detail you describe, so it may still not be possible, but the NOT statement goes in between the WHERE statement and the comparison. - dean.allmann 9 years ago
Posted by:
htomlinson
9 years ago