jdemackio Posted November 16, 2004 Posted November 16, 2004 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. Quote - The only true knowledge is knowing that you know nothing.
Administrators PlausiblyDamp Posted November 16, 2004 Administrators Posted November 16, 2004 Can you edit the remote computers registry manually via regedit? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
jdemackio Posted November 16, 2004 Author Posted November 16, 2004 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. Quote - The only true knowledge is knowing that you know nothing.
Administrators PlausiblyDamp Posted November 18, 2004 Administrators Posted November 18, 2004 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 it's shares? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
jdemackio Posted November 19, 2004 Author Posted November 19, 2004 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. Quote - The only true knowledge is knowing that you know nothing.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.