0

I am currently using PowerShell's Copy-Item commandlet to create a copy of a 500GB file and transferring it to another local hard drive on the computer. Doing it this way is really slow: a couple hours for it to finish. When I simply right-click the file, select copy, and paste, the transfer takes about an hour. Is there another PowerShell cmdlet to use to get faster transfer time?

EDIT: Powershell commandlet iam currently using Copy-Item -Path G:\Backups -Destination I:\Backups -Force -Recurse

1
  • Please share the actual commands that you are running. Are you making a copy of the file and then moving that copy, or just using one instance of the Copy-Item cmdlet to create your copy? – SturdyErde Oct 10 '20 at 13:56
1

Is there another PowerShell cmdlet to use to get faster transfer time?

It's slow because it is using buffered I/O. If you want performance parity use a native Windows command such as XCOPY or RoboCopy and use unbuffered I/O.

1
  • yep robocopy helped alot in transfer time thanks – Gh88 Oct 13 '20 at 0:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.