How do you force SLREGWRITEVAL to write to 64bit registry?

You would think that it would be as easy as using the KIX SETOPTION "WOW64ALTERNATEREGVIEW" command.  However, it appears that the Desktop Authority API function SLREGWRITEVAL ignores it and continues to write to the 32bit registry.  I haven't checked any of the other DA API registry functions.


The script command  : $rc=slregwriteval("HKLM\Software\Scriptlogic\LocalMachine", "ComputerType", "Desktop", "REG_SZ")

Returns the following in the slTrace : sub> slRegEdit: Action=[WriteValue] Key=[HKLM\Software\Scriptlogic\LocalMachine] Value=[ComputerType] Data=[Desktop] Type=[REG_SZ] Force32=[1]

Looks like there should be a 5th parameter passed to the function that would change "Force32=0".  Maybe some undocumented variable?  $slRegForce32=0?

I hadn't run into this before since all my scripts using the functions are reading and writing to the 32bit area of HKLM. (HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node).

Any input would be appreciated.  Yes, I've opened a support request with Dell and I'll let you know when I hear from them.




0 Comments   [ + ] Show comments

Answers (1)

Posted by: davidhobbs 5 years ago
White Belt

Found the answer :

slRegEdit($Action, $RegKey, OPTIONAL $RegVal, OPTIONAL$RegExp, OPTIONAL $RegTyp, OPTIONAL $NoDebug, OPTIONAL $Use32bitKey)

Action can be “ReadValue”, “WriteValue”, etc.

Set $Use32bitKey to 0 ot 1 depending on your needs.

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