From 9709432d296d2d3e2b408a96f15faef5bd973951 Mon Sep 17 00:00:00 2001 From: Alexey Suhov Date: Wed, 14 Apr 2021 13:08:39 +0300 Subject: [PATCH] [dependencies.bat] force Powershell to use TLS 1.2 (#5227) --- inference-engine/scripts/dependencies.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference-engine/scripts/dependencies.bat b/inference-engine/scripts/dependencies.bat index aa7528527c8..5241d428d18 100644 --- a/inference-engine/scripts/dependencies.bat +++ b/inference-engine/scripts/dependencies.bat @@ -81,7 +81,7 @@ if not "%DEPENDENCY_URL%"=="" ( if not exist "%DL_SDK_TEMP%\test_dependencies\%DEPENDENCY%\%DEPENDENCY_FILE%" ( mkdir "%DL_SDK_TEMP%\test_dependencies\%DEPENDENCY%\%DEPENDENCY_FILE%" for /L %%a in (1,1,10) do ( - powershell -command "iwr -outf '%DL_SDK_TEMP%\test_dependencies\%DEPENDENCY%\_%DEPENDENCY_FILE%' %DEPENDENCY_URL%" + powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; iwr -outf '%DL_SDK_TEMP%\test_dependencies\%DEPENDENCY%\_%DEPENDENCY_FILE%' %DEPENDENCY_URL%" call "C:\Program Files\7-Zip\7z.exe" x -y %DL_SDK_TEMP%\test_dependencies\%DEPENDENCY%\_%DEPENDENCY_FILE% -o%DL_SDK_TEMP%\test_dependencies\%DEPENDENCY%\%DEPENDENCY_FILE% if !ERRORLEVEL! equ 0 goto :DownloadFileContinue timeout /T 15