Remote Registry Trouble

jdemackio

Active member
Joined
Jun 8, 2004
Messages
42
I am trying to read the registry on a remote machine. I have:
Code:
Dim rk As RegistryKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, strClient).OpenSubKey(strSubkey, False)
I receive an exception saying "Requested registry access not allowed." My app runs from an XP machine and is trying to read another XP machine. Both machines have common Admin accounts and the remote registry service is started on both as well. Could someone please let me know if I need to make any other adjustments for this to work? Thanks.
 
Can you edit the remote computers registry manually via regedit?

Yes, I can use regedit on the remote machine to edit the registry. Both machines are logged into a local common Admin account.
One thing to take into consideration is that these machines share a common workgroup and are not actually part of an Active Directory domain. Also, I noticed that the remote registry services are running as LocalService. Does this need to be changed to NetworkService? Finally, I read online that each machine must have remote administration enabled. Is this done by default, or do I need to change some things? Thanks for your help.
 
Can you run regedit on the local machine and edit a remote registry though? Also can you browse to the remote machine through the network and access its shares?
 
OK, so I connected and disconnected through regedit and then it started working in my app. Im glad it works now, but I wish I knew what happened and what was changed for it to work. Thanks for the help by the way.
 
Back
Top