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