Answer the question
In order to leave comments, you need to log in
How to download a file from HTTPS using PowerShell?
To download a file in PowerShell, use the command
powershell -command "& { Invoke-WebRequest 'http://eternallybored.org/misc/wget/1.20.3/32/wget.exe' -OutFile 'wget.exe' }"
"Invoke-WebRequest : Запрос был прерван: Не удалось создать защищенный канал SSL/TLS."
Answer the question
In order to leave comments, you need to log in
echo [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" >getwget.ps1
echo Invoke-WebRequest 'http://eternallybored.org/misc/wget/1.20.3/32/wget.exe' -OutFile 'wget.exe' >>getwget.ps1
powershell -ExecutionPolicy Bypass -File getwget.ps1
del /f /q getwget.ps1 >nul
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question