Modify

#2866 closed Bug (Fixed)

regread cant read x64 keys remote

Reported by: anonymous Owned by: Jon
Milestone: 3.3.15.5 Component: AutoIt
Version: 3.3.12.0 Severity: None
Keywords: Cc:

Description

If you run regread from a x86 os PC and want to read a regkey from a x64 os remote than this is not working.

Example:

RegRead("\\REMOTEx64SYSTEM\HKLM64\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install", "LastSuccessTime")

This key doesn't exists in the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node so the command fails with @error 1 = unable to open requested key

It makes no difference if run with HKLM or HKLM64 but in my opinion HKLM64 should do the job

Attachments (0)

Change History (8)

comment:1 by Jos, on Aug 28, 2014 at 7:05:47 PM

Are you running this with the X64 version of AutoIt3?

Jos

comment:2 by Jpm, on Aug 29, 2014 at 11:32:15 PM

I suspect NO as it is running from a PC 32-Bit ...

comment:3 by devilman16, on Sep 1, 2014 at 8:37:44 AM

I am running this from a Win7 x86 pc with Autoit x86

comment:4 by AdamUL, on Sep 4, 2014 at 6:36:28 PM

Here is some more info on this.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa384129(v=vs.85).aspx

Does the internal AutoIt registry functions use the KEY_WOW64_64KEY flag when HKLM64 is specified?

comment:5 by Jpm, on Sep 5, 2014 at 6:46:45 PM

Yes it does.
But I am not for sure a PC running a 32-Bit version can reference the 64-bit specific registry info

comment:6 by devilman16, on Sep 29, 2014 at 7:10:56 AM

There must be a way, cause also reg.exe can read x64 regkeys from a x86 system:
http://www.remkoweijnen.nl/blog/2011/10/21/remote-registry-from-32-to-64-bit/

Not working:

reg query "\\REMOTEx64SYSTEM\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install" /v LastSuccessTime

Working:

reg query "\\REMOTEx64SYSTEM\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\Results\Install" /v LastSuccessTime /reg:64

comment:7 by Jpm, on Jan 1, 2021 at 6:13:53 AM

Owner: set to Jpm
Status: newassigned

Fix sent to Jon

comment:8 by Jon, on Feb 27, 2022 at 2:44:35 PM

Milestone: 3.3.15.5
Owner: changed from Jpm to Jon
Resolution: Fixed
Status: assignedclosed

Fixed by revision [12633] in version: 3.3.15.5

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.