locked
Accessing Remote Computer Registry RRS feed

  • Question

  • Hi All,
     
    I am trying to access a remote computer registry. I use the following code to do so, where remoteName is the name of the remote host
     
     environmentKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, remoteName);
     test = environmentKey.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths",true);
     string[] SubKeys = test.GetSubKeyNames();
     environmentKey.Close();
     
    When i give the hostname as the name of the Machine where in the my domain account as the administrative privillage it works, where as in situation where the remote machine does not have administrative privillage for my domain account it throws an error.
     
    These are some of the questions that i have
     
     1. Is there any way i can set a different User Setting for the registry access ? if yes than how it can be achieved ?
     
     2. are there any different ways to accesss remote computer registry. if yes how ? pls provide me links
     
    Thanks for your time and help
    Wednesday, October 25, 2006 11:10 AM

Answers