title: Getting PowerShell to post all information to out file
body: <p>PowerShell is writing information to file when I delete a registry entry successfully however I also need it to post errors to the file instead of the PS session.</p>
  
  <pre><code>Remove-Item -Path $path -Force -Verbose 4&gt;&amp;1 | Out-File "c:\registryresults.txt"
  </code></pre>
  
  <p>How would I be best able to achieve this?</p>