Cannot open HKLM\Software via remote registry on XP x64
From: Stefan Kuhr (kustt110_at_gmx.li)
Date: 06/15/05
- Next message: Marco van Nieuwenhoven: "How to communicate with a smartcard token using c#"
- Previous message: Sudhakar Govindavajhala: "How to get the owner of a process?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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"
- Next message: Marco van Nieuwenhoven: "How to communicate with a smartcard token using c#"
- Previous message: Sudhakar Govindavajhala: "How to get the owner of a process?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|