connect open remote registry when login with a domain user on vista or windows server 2008.

connect open remote registry when login with a domain user on vista or windows server 2008.

Post by tian » Tue, 29 Apr 2008 15:09:49


I have logged into a machine with a user who is only a domain user, and used
api RegConnectRegistry and then RegOpenKeyEx to query another machine's
registry in the same domain, but RegOpenKeyEx returns access denied. I have
tried giving the local administrator and domain administrator credentials
using NetUseAdd and WNetAddConnection2, but both cannot work.
This only happened in Vista or Windows Server 2008. And only happened when I
logged in with a domain user.
Could anyone help me?
Thanks
 
 
 

connect open remote registry when login with a domain user on vista or windows server 2008.

Post by Volodymyr » Sat, 03 May 2008 20:47:01

Probably this is a UAC limitation? Have you tried to execute your code with
admin. priviliges? P.S. Maybe a better place for this question is at
microsoft.public.security


--
V.
This posting is provided "AS IS" with no warranties, and confers no
rights.

 
 
 

connect open remote registry when login with a domain user on vista or windows server 2008.

Post by tian » Mon, 05 May 2008 22:42:58

Thanks!
I have tried turning UAC off but it didn't work. It is working with admin.
priviliges.
It might be a bug for vista and 2008...