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!
Answer Summary:
0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity


Use 2 CIR's one for each key.  Then create a report that uses that filter rule. Or do like htomlinson suggested use a smart label
Answered 12/22/2014 by: SMal.tmcc
Red Belt

Please log in to comment
The only operators that work in CIRs are AND and OR.
Answered 12/30/2014 by: jknox
Red Belt

Please log in to comment
I think you put the NOT in front of the comparison.  For instance WHERE NOT RegKeyA = "blahblahblah".

Hope that helps.
Answered 12/19/2014 by: dean.allmann
Senior White Belt

  • 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?
    • 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.
Please log in to comment
You would use the custom inventory RegistryValueEquals(KEY, VALUE, DATA). to collect the data for both registry keys.
You would then create a smart label RegKeyA is NOT "blah..." AND RegKeyB IS "bleh..." to get the machines you want. 
Answered 12/22/2014 by: htomlinson
Purple Belt

Please log in to comment
Share SNMP OID and MIB Information
It’s easy to add custom SNMP OID GETs to your Dell KACE K1000 inventory, but where do you find the exact OIDs you need for a specific device? This is the place to share the OIDs and MIBs you have – and to request the ones you need.