
You may find that doing a $ProgressPreference = "silentlyContinue" before Invoke-WebRequest will significantly improve download speed with large files; this. This Powershell code will connect to an FTP site and download a file and store it in a location. Method #1 LONG method with a bunch of error. You can use this cmdlet: Get-PnPFile. Get-PnPFile -Url fileUrl -AsFile.
-