title: How to remove mapped network drive with Powershell?
body: <p>I am trying to create and remove a new mapped network drive using PowerShell. </p>
  
  <p>It creates the mapped drive, however I can't seem to remove the mapped drive. The error message I receive is: </p>
  
  <blockquote>
    <p>Dir : Cannot find path 'C:\Windows\system32\P' because it does not exist.</p>
  </blockquote>
  
  <pre><code>New-PSDrive -Name "P" -Root "\\VM-Blue-Robin\Testing" -Persist -PSProvider "FileSystem" 
  #Get-PSDrive P | Remove-PSDrive
  #Remove-PSDrive -Name P -Force
  #Remove-PSDrive P, Z
  </code></pre>
  
  <p>All Google and Stack Overflow has suggested to me thus far is using the commands that I have previously commented out. I am unsure of what I am doing wrong but had a feeling it could be done to the location of my files perhaps?</p>
  
  <p>All help would be greatly appreciated! </p>