title: Cannot create or update file in cmd, Powershell, nor Vscode. But I can through Sublime, git bash and File Explorer
body: <p>I'm on Windows 10.</p>
  
  <p>When I tried to create a file using <strong>Powershell</strong>, I got the below error</p>
  
  <p>(Note: same behavior happened in <strong>cmd.exe</strong> but <strong>not Git Bash</strong>)</p>
  
  <pre><code>PS C:\Users\John\Documents&gt; New-Item hi.txt -type file
  New-Item : Could not find file 'C:\Users\John\Documents\hi.txt'.
  At line:1 char:1
  + New-Item hi.txt -type file
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo          : WriteError: 
    (C:\Users\John\Documents\hi.txt:String) [New-Item], 
    FileNotFoundException
  + FullyQualifiedErrorId : NewItemIOError,Microsoft.PowerShell.Commands.
    NewItemCommand
  </code></pre>
  
  <p>I can create, open, and update files normally from File Explorer and Git Bash.</p>
  
  <p>I've checked the permission level of the directory and I do have full control of the directory.</p>
  
  <pre><code>PS C:\Users\John&gt; (get-acl .\Documents\).access
  
  
  FileSystemRights  : FullControl
  AccessControlType : Allow
  IdentityReference : NT AUTHORITY\SYSTEM
  IsInherited       : False
  InheritanceFlags  : ContainerInherit, ObjectInherit
  PropagationFlags  : None
  
  FileSystemRights  : FullControl
  AccessControlType : Allow
  IdentityReference : BUILTIN\Administrators
  IsInherited       : False
  InheritanceFlags  : ContainerInherit, ObjectInherit
  PropagationFlags  : None
  
  FileSystemRights  : FullControl
  AccessControlType : Allow
  IdentityReference : BUILTIN\Users
  IsInherited       : False
  InheritanceFlags  : None
  PropagationFlags  : None
  
  FileSystemRights  : FullControl
  AccessControlType : Allow
  IdentityReference : JOHN-DEEPBOOK\JOHN
  IsInherited       : False
  InheritanceFlags  : ContainerInherit, ObjectInherit
  PropagationFlags  : None
  
  FileSystemRights  : FullControl
  AccessControlType : Allow
  IdentityReference : NT AUTHORITY\SYSTEM
  IsInherited       : True
  InheritanceFlags  : ContainerInherit, ObjectInherit
  PropagationFlags  : None
  
  FileSystemRights  : FullControl
  AccessControlType : Allow
  IdentityReference : BUILTIN\Administrators
  IsInherited       : True
  InheritanceFlags  : ContainerInherit, ObjectInherit
  PropagationFlags  : None
  
  FileSystemRights  : FullControl
  AccessControlType : Allow
  IdentityReference : JOHN-DEEPBOOK\JOHN
  IsInherited       : True
  InheritanceFlags  : ContainerInherit, ObjectInherit
  PropagationFlags  : None
  </code></pre>
  
  <p>Tried running PowerShell as Administrator and the same occurred.</p>
  
  <p>This isn't the only directory that has this problem. /Desktop and /Contacts also have the same problem. I thought there might be something special for these built-in directories, but /Downloads is working fine. And they all have the same permission levels.</p>
  
  <p>Another interesting behavior I found is that, when I invoked Sublime from PowerShell, it ran into the same issue where it couldn't save file. But when I invoked it from start menu it worked fine.</p>
  
  <p>I also tried editing in Vscode, and it crashes when I tried to save the file. It crashed both when I invoked from PowerShell and start menu.</p>
  
  <p>It seems to be more of a Windows issue rather than PowerShell solely, as I had the same problem with cmd.exe and Vscode.</p>
  
  <p>If you had any clue of why this is happening, any suggestion is appreciated!!</p>