Opened 10 years ago

Closed 2 years ago

#2866 closed Bug (Fixed)

regread cant read x64 keys remote

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


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.


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 Changed 10 years ago by Jos

Are you running this with the X64 version of AutoIt3?


comment:2 Changed 10 years ago by Jpm

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

comment:3 Changed 10 years ago by devilman16

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

comment:4 Changed 10 years ago by AdamUL

Here is some more info on this.

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

comment:5 Changed 10 years ago by Jpm

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 Changed 10 years ago by devilman16

There must be a way, cause also reg.exe can read x64 regkeys from a x86 system:

Not working:

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


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

comment:7 Changed 3 years ago by Jpm

  • Owner set to Jpm
  • Status changed from new to assigned

Fix sent to Jon

comment:8 Changed 2 years ago by Jon

  • Milestone set to
  • Owner changed from Jpm to Jon
  • Resolution set to Fixed
  • Status changed from assigned to closed

Fixed by revision [12633] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jon.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.