Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am trying to read the registry on a remote machine. I have:

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.

- The only true knowledge is knowing that you know nothing.
Posted
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.

- The only true knowledge is knowing that you know nothing.
Posted
OK, so I connected and disconnected through regedit and then it started working in my app. I'm 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.
- The only true knowledge is knowing that you know nothing.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...