OSDeploy/OSDBuilder

Downloading OneDriveSetup.exe with the WebClient doesn't work correctly

NKK80 opened this issue · 5 comments

NKK80 commented

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.

WebClientError

Can you test this using the latest OSD Module 22.1.11.2
image

NKK80 commented

image

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.

NKK80 commented

Just tried to Download OneDriveEnterprise again, and the script still uses the same empty variables.
image

Seeing this as well when running from Server 2016 v1607. Works fine when I run the same from my Windows 10 20H2 Workstation.