powershell download file with progress code example
Example 1: how to download file in powershell
$url = "http://mirror.internode.on.net/pub/test/10meg.test"
$output = "$PSScriptRoot\10meg.test"
Invoke-WebRequest -Uri $url -OutFile $output
Example 2: powershell download file
Invoke-WebRequest URL -OutFile c:\file.ext
Example 3: powershell download file with progress
Import-Module BitsTransfer
# Download The File Using Progress Bar
Start-BitsTransfer https://www.example.com/file C:/Local/Path/file