Merge pull request #375 from lnxg33k/master

Force powershell to use TLS 1.2 as chocolatey.org throws a TLS error
This commit is contained in:
Chris Long
2020-02-06 19:05:52 -06:00
committed by GitHub

View File

@@ -1,6 +1,7 @@
# Purpose: Installs chocolatey package manager, then installs custom utilities from Choco.
If (-not (Test-Path "C:\ProgramData\chocolatey")) {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Write-Host "Installing Chocolatey"
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
} else {