title: Phantom Mapped Network Drive Letter From Windows To Linux
body: <p>I've been using robocopy and mapped network drives to copy backups across untrusted windows domains to a central location, then push them to a Ubuntu storage device and I'm running into a lot of anomolies.  One that I am seeing right now is mapped network drives that do not seem to exist under any user context.  These are all being executed as me personally, or 'run as admin', both have the same result.</p>
  
  <p><em>Do note this does work in Powershell but not from CMD.</em></p>
  
  <p><em>delete all mapped drives:</em></p>
  
  <pre><code>Z:\Scripts&gt;net use * /delete
  There are no entries in the list.
  </code></pre>
  
  <p><em>Attempt to delete W: drive explicitly</em></p>
  
  <pre><code>Z:\Scripts&gt;net use w: /delete /y
  The network connection could not be found.
  
  More help is available by typing NET HELPMSG 2250.
  </code></pre>
  
  <p><em>Attempt to change directory to mapped drive, note logon failure</em></p>
  
  <pre><code>Z:\Scripts&gt;w:
  Logon failure: unknown user name or bad password.
  </code></pre>
  
  <p><em>Attempt to delete again</em></p>
  
  <pre><code>Z:\Scripts&gt;net use W: /delete /y
  The network connection could not be found.
  
  More help is available by typing NET HELPMSG 2250.
  </code></pre>
  
  <p><em>No connections show up</em></p>
  
  <pre><code>Z:\Scripts&gt;net use
  New connections will not be remembered.
  
  There are no entries in the list.
  </code></pre>
  
  <p><em>W: Drive Does Not Exist</em></p>
  
  <pre><code>Z:\Scripts&gt;net use W: /delete /Y
  The network connection could not be found.
  
  More help is available by typing NET HELPMSG 2250.
  </code></pre>
  
  <p><em>Attempt to map a drive to it</em></p>
  
  <pre><code>Z:\Scripts&gt;NET use W: \\servername\sharename PASSWORD /user:domain\username
  System error 85 has occurred.
  
  The local device name is already in use.
  </code></pre>