title: Remote Regstry access denied for non-admin user
body: <p>I am trying to open remote registry key with a non admin user who has been given access to registry key on remote machine. </p>
  
  <pre><code>remoteKey = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, hostname);
  </code></pre>
  
  <p>I am getting </p>
  
  <blockquote>
    <p>Requested registry access is not allowed.
           at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
           at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
           at Microsoft.Win32.RegistryKey.OpenSubKey(String name)
           at RemoteRegistry.Program.Main(String[] args)</p>
  </blockquote>
  
  <p>Is it possible to access HKLM hive to be accessed remotely from any other machine for non-admin user ? on the other hand for admin user it works fine.</p>
  
  <p>All other hives are accessible the above line does not cause any exception.</p>
  
  <p>Any pointers what could be the issue.</p>