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.

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

Where are you placing the Wake_On_LAN on your 64 bit machine? Please give the full path

Answered 10/11/2013 by: AbhayR
Fourth Degree Black Belt

  • HKEY_LOCAL_MACHINE\SOFTWARE\CSUS is where the key is on a 64bit when you open up Regedit after the script is run.
    • 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)
      • 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.
Please log in to comment
0

As long as it has permissions to SYSTEM user, it should be fine.

Answered 10/11/2013 by: AbhayR
Fourth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity

Share