Accessing a registry entry for a server IP

130 Views Asked by At

Is there a way to get a registry value from a server IP in c#?

I know to get for a local machine

Registry.LocalMachine.OpenSubKey(@"Software\Test"))

Instead of local machine, i need to find out for a server IP, in other words i need to access registry entry of test folder under software residing in a server.

Yours thoughts are appreciated.

1

There are 1 best solutions below

0
TheCloudlessSky On BEST ANSWER

If you're trying to open a key from a remote machine, check out this MSDN article. It basically involves the following:

  1. Setting RegistryPermissionAttribute and SecurityPermissionAttribute for security purposes.
  2. Using RegistryKey.OpenRemoteBaseKey to connect to a remote key.

HTH