yellowdog
(Starting to like KiXtart)
2019-03-12 11:41 AM
Modify 64 bit registry key

Hello,

I'd like to create a value with the following command on a 64 bit machine.

WriteValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore","SystemRestorePointCreationFrequency","1","REG_DWORD")

The problem is that it creates the value in

HKEY_LOCAL_MACHINE\Software\WOW6432Node\Microsoft\Windows NT\CurrentVersion\SystemRestore

instead of

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore

How can I set values in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore ?

thanks


AllenAdministrator
(KiX Supporter)
2019-03-12 02:35 PM
Re: Modify 64 bit registry key

For your specific problem:
$RC=setoption("WOW64AlternateRegView","On")

You'll probably need this one to eventually.
$RC=setoption("Wow64FileRedirection","on")