title: Move-Item : There is not enough space on the disk
body: <p>I need to move files from one directory to another on the same hard drive using PowerShell. The hard drive that I need to do that on is almost always on the limit of the space. My problem is when I try to use the cmdlet <code>Move-Item</code>, I get the error message "There is not enough space on the disk.". However, When using <kbd>Ctrl</kbd>+<kbd>X</kbd> and <kbd>Ctrl</kbd>+<kbd>V</kbd> on Windows Explorer it works fine. If I free up space on the hard drive, I'm also able to use the command <code>Move-Item</code>.</p>
  
  <p>So, I was wondering if someone can guide to find a solution to "cut" and " paste" a file using PowerShell that would not need more space on the disk to execute the command?</p>
  
  <pre><code>Get-ChildItem -Path "\\10.72.100.203\Pending\$ticket*" -Recurse -Force |
      Move-Item -Destination "\\10.72.100.203\Completed"
  </code></pre>
  
  <p><strong>Result:</strong></p>
  
  <pre>
  Move-Item : There is not enough space on the disk.
  At C:\script\test2.ps1:66 char:76
  + ... e -Force  | Move-Item -Destination "\\10.72.100.203\Completed" -Force ...
  +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : WriteError: (\\10.72.100.203...Mark 0718-3.VHD:FileInfo) [Move-Item],
      + FullyQualifiedErrorId : MoveFileInfoItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand
  </pre>
  
  <pre>
  Powershell version:
  PS C:\script> $PSVersionTable
  
  Name                           Value
  ----                           -----
  PSVersion                      5.1.15063.502
  PSEdition                      Desktop
  PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
  BuildVersion                   10.0.15063.502
  CLRVersion                     4.0.30319.42000
  WSManStackVersion              3.0
  PSRemotingProtocolVersion      2.3
  SerializationVersion           1.1.0.1
  </pre>