Query remote registry
Open a registry key on a remote computer.
Will only work if you are running the application with administrative privileges.
RegistryKey regKey = RegistryKey.OpenRemoteBaseKey (RegistryHive.LocalMachine, MACHINENAME);
regKey = regKey.OpenSubKey(REGKEY);
string[] names = regKey.GetSubKeyNames();
foreach (string entry in names)
{
MessageBox.Show (entry.ToString());
}
regKey.Close();
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.