title: Access denied in Windows cmd, but working in PowerShell
body: <p>Running the following command:</p>
  
  <p><code>dir "\\&lt;Some Network Path&gt;\"</code></p>
  
  <p>gives this result when executed in a <strong>command prompt (cmd)</strong>:</p>
  
  <p><code>Access is denied.</code></p>
  
  <p>and this (expected) result when executed in <strong>PowerShell</strong>:</p>
  
  <pre><code>    Directory:
      \\&lt;Some Network Path&gt;
  
  
  Mode                LastWriteTime         Length Name
  ----                -------------         ------ ----
  -a----       13.02.2020     11:11              0 test.txt
  </code></pre>
  
  <p>I know that dir is not the same command in cmd and PowerShell - but I don't understand why it may result in "Access denied" in cmd while working in PowerShell when executed on the same machine with the same user. Also, I can open the folder in Windows Explorer.</p>
  
  <p>What can be possible reasons?</p>
  
  <p>Thank you in advance.</p>