From b6bb5f65ee06597902f7928ac2226c4bb36586fd Mon Sep 17 00:00:00 2001 From: dragon788 Date: Wed, 15 Apr 2020 13:50:59 -0500 Subject: [PATCH] Fix Chocolatey install --- scripts/exampleChoc.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/exampleChoc.ps1 b/scripts/exampleChoc.ps1 index 1cb6646..40f904b 100644 --- a/scripts/exampleChoc.ps1 +++ b/scripts/exampleChoc.ps1 @@ -1,5 +1,8 @@ # Install Chocolatey -iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) +# https://chocolatey.org/docs/installation#install-with-powershellexe +# Need the SecurityProtocol bit because the Chocolatey.org site only responds to TLS1.2 now +# https://chocolatey.org/blog/remove-support-for-old-tls-versions +Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) # Globally Auto confirm every action choco feature enable -n allowGlobalConfirmation