A very convenient built-in way to download files, even with SSL connections, is Start-BitsTransfer. It also sports a progress bar that shows the actual download status. Here is a working sample:
$url = 'https://mars.nasa.gov/system/downloadable_items/41764_20180703_marsreport-1920.mp4'
$OutFile = "$home\desktop\videoNasa2.mp4"
Start-BitsTransfer -Source $url -Destination $OutFile -Priority Normal -Description 'NASA Movie'
ReTweet this Tip!
This is not a specific PS version / OS issue, but yep, it does happen, and has happen long before Win 10.
And has been covered on this site before:
That code generates this error on my system (PS 5.1, Win 7), but works fine on Win 10, just to let you know.
Start-BitsTransfer : The operation being requested was not performed because the user has not logged on to the network. The specified service does not(Exception from HRESULT: 0x800704DD)At line:1 char:1+ Start-BitsTransfer -Source $url -Destination $OutFile -Priority Norma ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Start-BitsTransfer], COMException + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand