title: Editing registry keys with Powershell
body: <p>I am trying to force Teamviewer to go to systray after clicking &quot;close=x&quot; on the window.</p>
  <p>Somehow this changes reg but doesn't thick that in Teamviewer options.</p>
  <p>Anyone have a solution for that?</p>
  <pre><code>$regkey = &quot;HKLM:\SOFTWARE\Wow6432Node\TeamViewer&quot;   
  set-itemproperty -path $regkey -name MinimizeToTray -Value 1
  </code></pre>