/build/static/layout/Breadcrumb_cap_w.png

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:
Posted by: SMal.tmcc 9 years ago
Red Belt
1
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
Posted by: jknox 9 years ago
Red Belt
1
The only operators that work in CIRs are AND and OR.
Posted by: dean.allmann 9 years ago
Senior White Belt
0
I think you put the NOT in front of the comparison.  For instance WHERE NOT RegKeyA = "blahblahblah".

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
Purple Belt
0
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. 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ