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,
Answers (3)
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
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.
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 12 years ago -
Good to know, thanks! - jverbosk 12 years ago