Progress during large file copy (Copy-Item & Write-Progress?)

Jason Jarrett picture Jason Jarrett · Mar 12, 2010 · Viewed 118.3k times · Source

Is there any way to copy a really large file (from one server to another) in PowerShell AND display its progress?

There are solutions out there to use Write-Progress in conjunction with looping to copy many files and display progress. However I can't seem to find anything that would show progress of a single file.

Any thoughts?

Answer

Nacht picture Nacht · Sep 9, 2014

It seems like a much better solution to just use BitsTransfer, it seems to come OOTB on most Windows machines with PowerShell 2.0 or greater.

Import-Module BitsTransfer
Start-BitsTransfer -Source $Source -Destination $Destination -Description "Backup" -DisplayName "Backup"