Downloading OneDriveSetup.exe with the WebClient doesn't work correctly
NKK80 opened this issue · 5 comments
The variables on row 280 of Save-OSDBuilderDownload.ps1 are empty when PowerShell tries to download OneDriveSetup.exe with the WebClient.
When those variables are changed to the same variables used by WebRequest (row 283) and Curl (row 288 & 293), "$DownloadUrl
" & "$DownloadPath\$DownloadFile
", the Download does work correctly.
Some additional information is that we are behind a proxy, because of this "Save-OSDBuilderDownload.ps1" will try to use the WebClient to download the OneDrive setup. And like I said in my original post the variables for the WebClient download of the OneDrive setup are empty.
I can change "Save-OSDBuilderDownload.ps1" myself to make the download work, but I would prefer it to work without that.
Seeing this as well when running from Server 2016 v1607. Works fine when I run the same from my Windows 10 20H2 Workstation.