You need to pass an additional argument (RegistryView.Registry32
) to OpenRemoteBaseKey like the example below.
RegistryKey key = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, remoteServerName, RegistryView.Registry32)
These links would be helpful for you. http://msdn.microsoft.com/en-us/library/dd411615(v=vs.110).aspx http://msdn.microsoft.com/en-us/library/microsoft.win32.registryview(v=vs.110).aspx