title: Access %appdata% on distant computer .NET openremotebasekey
body: <p>I am trying to access the "AppData" of a user on a remote computer. I have all the rights needed. I tried this:</p>
  
  <pre><code>r = RegistryKey.OpenRemoteBaseKey(RegistryHive.Users, MachineName)
  r.OpenSubKey(SIDValue &amp; "\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders")
  AppData = r.GetValue("AppData")
  </code></pre>
  
  <p>The fact is that it retrieves my own appdata folder...Actually the SID Value of the account on the distant computer and on mine is the same (I am under a domain). I don't know if it is the reason why I get my own appdata folder.</p>
  
  <p>How should I proceed?</p>
  
  <p>When I browse the HKEY_Local_Machine, I manage to have information about the remote computer..But not when browsing HKEY_USERS.</p>