/build/static/layout/Breadcrumb_cap_w.png

RegistryValueReturn don't work if registry key changes

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

Answers (1)

Posted by: SMal.tmcc 10 years ago
Red Belt
1

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.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

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