diff --git a/win/build-deps.cmd b/win/build-deps.cmd index cb97869a06..8f1de0fc1b 100644 --- a/win/build-deps.cmd +++ b/win/build-deps.cmd @@ -442,7 +442,7 @@ exit /b %IFCOS_SCRIPT_RET% pushd "%2" if not exist "%~3". ( call cecho.cmd 0 13 "Downloading %DEPENDENCY_NAME% into %~2." - powershell -Command "$webClient = new-object System.Net.WebClient; $webClient.DownloadFile('%1', '%3')" + powershell -Command "$webClient = new-object System.Net.WebClient; $webClient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials; $webClient.DownloadFile('%1', '%3')" REM Old wget version in case someone has problem with PowerShell: wget --no-check-certificate %1 ) else ( call cecho.cmd 0 13 "%DEPENDENCY_NAME% already downloaded. Skipping."