KACE 1000 Custom Inventory Rule for Registry not processing - error=183
I've setup a script using Dell's CCTK utility that checks if a PC is setup for Wake on LAN and then writes a custom registry key to indicate if it's enabled or disabled. I'm trying to create a custom inventory rule to query that key and give me the state of WOL across our machines.
It's working on my 32-bit machine, but not 64. I've read other posts that indicate you need to specify HKLM64 to query the 64-bit hive and I've done that, but it isn't working.
Here's the KDeploy log:
---------------------
[Fri Oct 11 09:13:22 2013] [CDeployController::ExecuteCustomInventoryRule] rule ID [54334] : issuing rule [RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\CSUS,Wake_On_LAN,Enabled) OR RegistryValueEquals(HKEY_LOCAL_MACHINE64\SOFTWARE\CSUS,Wake_On_LAN,Enabled);]
[Fri Oct 11 09:13:22 2013] Custom Inventory Rule failed on registry operation: logop=2, key='HKEY_LOCAL_MACHINE\SOFTWARE\CSUS': error=183
[Fri Oct 11 09:13:22 2013] Custom Inventory Rule failed on registry operation: logop=2, key='HKEY_LOCAL_MACHINE64\SOFTWARE\CSUS': error=183
[Fri Oct 11 09:13:22 2013] [CDeployController::ExecuteCustomInventoryRule] rule [54334] statement result: "", FALSE
---------------------
"HKEY_LOCAL_MACHINE64\SOFTWARE\CSUS,Wake_On_LAN,Enabled" should be evaluating to TRUE on this PC.
Answers (2)
Where are you placing the Wake_On_LAN on your 64 bit machine? Please give the full path
Comments:
-
HKEY_LOCAL_MACHINE\SOFTWARE\CSUS is where the key is on a 64bit when you open up Regedit after the script is run. - jones948 10 years ago
-
It is working for me. What is your agent version? See below.
--------------------------
KDeploy custominventory processing 1 rules
[CDeployController::ExecuteCustomInventoryRule] rule ID [1355] : issuing rule [RegistryValueEquals(HKEY_LOCAL_MACHINE\SOFTWARE\CSUS,Wake_On_LAN,Enabled) OR RegistryValueEquals(HKEY
_LOCAL_MACHINE64\SOFTWARE\CSUS,Wake_On_LAN,Enabled);]
Custom Inventory Rule failed on registry operation: logop=2, key='HKEY_LOCAL_MACHINE\SOFTWARE\CSUS': error=183
[CDeployController::ExecuteCustomInventoryRule] rule [1355] statement result: ;1355, TRUE
KDeploy finished processing 1 custominventory rules, sending response
---------------------------
What happens if you try these 2 rules seprately
1. RegistryValueEquals(HKEY
_LOCAL_MACHINE64\SOFTWARE\CSUS,Wake_On_LAN,Enabled);
2. RegistryKeyExists(HKEY
_LOCAL_MACHINE64\SOFTWARE\CSUS) - AbhayR 10 years ago-
Agent 5.525198 and "FALSE" on both rules run separately.
However, I think I'm running into a permissions problem. I granted "Everyone" full control over that registry key and now the custom inventory is working fine on all 5 of my test machines. - jones948 10 years ago