title: Get remote registry for logged in user
body: <p>I have seen many examples on the net about getting remote registry but I want to check the folder redirection for logged in users not the user I run the script as.</p>
  
  <p>Is this even possible using PowerShell? Before I joined this company their IT was outsourced and the whole AD/GPO everything is a big big mess. Some users are redirecting and some are not so I want to check who has the redirection enabled without having to go to each computer physically.</p>
  
  <pre><code>$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('CurrentUser','10.0.0.113')
  $regkey = $reg.OpenSubKey("Software\\Microsoft\\Windows\CurrentVersion\\Explorer\\User Shell Folders")
  $regkey.GetValue("Personal")
  </code></pre>
  
  <p>I tried this but again only shows me information about the admin user account that the script runs as.</p>