title: Split-Path with Root UNC Directory
body: <p>So I've got a UNC path like so:</p>
  
  <pre><code>\\server\folder
  </code></pre>
  
  <p>I want to get just the path to server, eg <code>\\server</code>.
  <code>Split-Path "\\server\folder" -Parent</code> returns <code>""</code>.  Anything I try which deals with the root, fails.
  For example, <code>Get-Item "\\server"</code> fails too.</p>
  
  <p>How can I safely get the path of <code>\\server</code> from <code>\\server\\folder</code> in PowerShell?</p>