title: How do I suppress standard error output in PowerShell?
body: <p>In a PowerShell script automating some SVN tasks I have the following function:</p>
  
  <pre><code>function SvnUrlExists($url)
  {
    svn info $url | out-null 2&gt;&amp;1
    return $?
  }
  </code></pre>
  
  <p>Since this explicitly tests whether some SVN repository URL exists, I am not interested at all in any error output. However, despite everything I found about redirecting <code>stderr</code> in PowerShell suggesting <code>2&gt;&amp;1</code> to redirect it to <code>stdout</code>, <strong><em>this still outputs an error message</em></strong>:</p>
  
  <pre>
  svn: warning: W170000: URL 'blahblah' non-existent in revision 26762
  svn: E200009: Could not display info for all targets because some targets don't exist
  </pre>
  
  <p>Unfortunately, this severely messes up the output of my script.</p>
  
  <p>What am I doing wrong, and how should I suppress this error output?</p>