The problem is the “HKEY_LOCAL_MACHINE\SOFTWARE \Wow6432Node” registry key represents a separate view of “HKEY_LOCAL_MACHINE\SOFTWARE” for 32-bit applications. This runs on all 64-bit version of Windows.
By calling “%WINDIR%\regedit.exe /s MyRegistry.reg” directly from the Kbox script would import registry value to “HKEY_LOCAL_MACHINE\Software\Wow6432Node”, this is not what we are trying to achieve. Our goal is to import registry to “HKEY_LOCAL_MACHINE\SOFTWARE” which is a native registry location for 64-bit applications.
In order to reach our goal we will use Regedt32.exe a Windows registry configuration editor and SYSNATIVE Windows system re-director.
Quest Kace agent is a 32-bit application and therefore uses 32-bit Windows libraries and executables from %WINDIR%\SysWoW64 directory. This location contains 32-bit DLLs and executables including a regedit.exe which is commonly used in scripting to import or export registry values.
Steps to resolve
“Directory:” %WINDIR%\SYSNATIVE
“File:” regedt32.exe
“Wait For Startup” box CHECKED
“Parameters:” /s $(KACE_DEPENDENCY_DIR)\MyRegFile.reg
(Note: Replace “MyRegFile.reg” with the actual your file name)
***NOTE: Provided script is for 64-bit Operating System architecture ONLY. It will not succeed if it is targeted for 32-bit OSs.***
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 使用条款 隐私 Cookie Preference Center