I have a custom invetory field the query a registry key with RegistryValueReturn.

RegistryValueReturn(HKEY_LOCAL_MACHINE\SOFTWARE\COMPANYNAME\SOFTWARENAME, SupportUserName, TEXT)

Initially it works but if this key changes KACE or better the the custom inventory item don't change too.

I see the wrong value also in kdeploy.log

[Thu Jan 09 17:49:31 2014] [CDeployController::ExecuteCustomInventoryRule] rule ID [12345] : issuing rule [RegistryValueReturn(HKEY_LOCAL_MACHINE\SOFTWARE\COMPANYNAME\SOFTWARENAME, SupportUserName, TEXT);]
[Thu Jan 09 17:49:31 2014] [OUT] OLDVALUE  [OUT]

But if i run a reg query on the path i'll get the right value.

reg query HKLM\Software\COMPANYNAME\SOFTWARENANE /v SupportUserName
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

2

If this is a 64 bit machine look under the HKEY_LOCAL_MACHINE\SOFTWARE\wow6432node\COMPANYNAME and see if there is a entry there also.  I have run into that problem and had to use HKLM64 instead of HKLM in my custom fields.

Answered 01/10/2014 by: SMal.tmcc
Red Belt

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