RegKeyExists Function for Custom Software Inventory Rule Does NOT Work
I have been working with Quest support on this, and basically they are saying it's not supported to assist with custom inventory rules (*sigh*). So here I am, seeing if anyone can assist.
I am using a Custom inventory rule with RegKeyExists (and have tried ShellCommandReturn), and no matter what I do it does not show the software as installed per the rule.
All systems are Windows 10, 64-bit. I am aware that KACE does weird things with reading a 64-bit reg key, but I have tried this in every way I can imagine. It still returns nothing on any of my systems:
ShellCommandTextReturn("c:\windows\sysnative\reg.exe query HKLM64\SOFTWARE\SOMEKEY\SomeSubKey")
ShellCommandTextReturn("c:\windows\sysnative\reg.exe query HKLM\SOFTWARE\SOMEKEY\SomeSubKey")
ShellCommandTextReturn(reg query "HKEY_LOCAL_MACHINE64\SOFTWARE\SOMEKEY\SomeSubKey")
ShellCommandTextReturn(reg query "HKEY_LOCAL_MACHINE\SOFTWARE\SOMEKEY\SomeSubKey")
Any ideas what I'm doing wrong? Thanks in advance.
The function works fine but it does not show as a CIR but as an installed program.
See this blog for the proper verbiage to read the keys
Here is a report on CIRs from my admin org, note the wording to look for registry key
I created this key on my machine to get a positive return
ran inventory got a hit on my machine
This is where the positive return exists in machine detail.