Cannot open HKLM\Software via remote registry on XP x64

From: Stefan Kuhr (kustt110_at_gmx.li)
Date: 06/15/05


Date: Wed, 15 Jun 2005 14:31:09 +0200

Hello everyone,

I try to open the registry remotely and the remote machine is an XP x64
machine. Opening the remote registry succeeds but if I click on the
HKEY_LOCAL_MACHINE branch in regedit, I get a message box "Cannot open
HKEY_LOCAL_MACHINE: Error while opening key."

This happens only if I am logged in in the machine where I run regedit
as a principal that is not a local admin on the remote machine. regedit
prompts me to supply admin credentials but somehow cannot fully access
the HKLM hive.

However if I am logged in as a principal that is a local admin on the
remote machine, everything works and as expected I am not prompted for
admin credentials.

I think there must be some policy set on the remote machine that
prevents me to open the remote registry even when supplying correct
admin credentials and thus opening an administrative network logon session.

I never had that problem before with NT, W2K or XP machines, only this
relatively new x64 workstation of mine shows this problem. And yes, the
machine is member of a domain.

Anyone with any ideas what might be the reason for this behaviour?

I am asking this here in this group because my code fails. It makes a
WNetAddConnnection to the remote machine's IPC$ share, successfully does
  a RegConnectRegistry but fails with ERROR_ACCESS_DENIED when opening
HKLM\Software with write access using the key obtained by
RegConnectRegistry. It doesn't matter if I compile this code natively
for x64 or use x86 Binaries.

-- 
Stefan Kuhr
"Lesen schadet der Dummheit"


Relevant Pages

  • Re: Zip file viewer ? ? ?
    ... names without opening them? ... FileStar can. ... verson 3 will do that on a remote machine across a ...
    (comp.os.os2.apps)
  • Re: Can One Run "lsof" Remotely?
    ... session on the remote machine, just like opening a local shell. ...
    (comp.os.linux.misc)
  • Re: CreateService() and WOW64 issue
    ... But CreateService() has an option for remote machines which means it could be x86 client and x64 server. ... I'm trying to avoid PsExec, but anyway I think it works the same way, it creates a service on the remote machine, but probably runs it as WOW64. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: uptime.exe not working remotely
    ... Would only use the same admin credentials if Admin ... Profile was a Roaming User profile or, ... >> Such utilities need to be run as Administrators on the ... >> on the remote machine? ...
    (microsoft.public.windowsxp.work_remotely)
  • WMI Timeouts
    ... I have got admin credentials on this machine. ... I am getting all the data using WMI for this remote machine but I want ... indefinitely for getting the process data. ... get data from is a Win2k Advanced server. ...
    (microsoft.public.win32.programmer.wmi)