Page 1 of 1 1
Topic Options
#213666 - 2019-03-12 11:41 AM Modify 64 bit registry key
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
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

Top
#213667 - 2019-03-12 02:35 PM Re: Modify 64 bit registry key [Re: yellowdog]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
For your specific problem:
$RC=setoption("WOW64AlternateRegView","On")

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

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 382 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.034 seconds in which 0.016 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org