/build/static/layout/Breadcrumb_cap_w.png

Custom Inventory Rule is not evaluating certain values

Hi There,

I'm attempting to create a custom inventory rule that verifies a products version using the information that exists within its Uninstall registry key (I've tried using FileVersion equals but it hasn't worked).

Here is the string I'm using:

RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BC994A59-6E98-4203-8A35-819938DD5ED1},DisplayVersion,2.5.2.0) 

I know it exists on the system but still it's not returning is installed on that machine, I don't know if the curly brackets are an issue?

I've also tried verifying that the key exists and still I'm getting nothing.  Any assistance is appreciated.

Thanks,


0 Comments   [ + ] Show comments

Answers (3)

Posted by: AbhayR 11 years ago
Red Belt
1

jmarshall,

Dell Kace Agent is a 32 bit application. Hence on a 64 bit OS, to access 64 bit registry hive following would be the change. Append 64 in HKEY_LOCAL_MACHINE

RegistryValueEquals(HKEY_LOCAL_MACHINE64\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BC994A59-6E98-4203-8A35-819938DD5ED1},DisplayVersion,2.5.2.0) 

-Abhay

 

Posted by: Hammer1790 11 years ago
2nd Degree Black Belt
0

Did you check the supported operating systems? You must select which version of Windows this Custom Inventory Rule applies to. Another way to check to see if you got the correct path is to export the registry key, edit the .reg file, and check the path in that file to see if it matches what you are trying to accomplish. The brackets should not be an issue.

Posted by: jverbosk 11 years ago
Red Belt
0

I tried the same thing with a few different keys in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and none of them (curly brackets or not) worked using the syntax listed in the Custom Inventory Rule help button text:

RegistryValueEquals(registryPath, valueName, value)

I've run into bugs (or syntax that was different than listed) a few times, and would suggest giving KACE support a call to verify that's not the case here.  For what it's worth, my K1000 is version 5.3.53053, my agents are version 53.53177 and I tested on a Win7 x64 SP1 machine.

Please update with status if you do call support and get an answer/solution.

John


Comments:
  • jverbosk ,

    Dell Kace Agent is a 32 bit application. Hence on a 64 bit OS, to access 64 bit registry hive following would be the change. Append 64 in HKEY_LOCAL_MACHINE

    RegistryValueEquals(HKEY_LOCAL_MACHINE64\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{BC994A59-6E98-4203-8A35-819938DD5ED1},DisplayVersion,2.5.2.0)

    -Abhay - AbhayR 11 years ago
  • Good to know, thanks! - jverbosk 11 years ago

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