Skip to content

Instantly share code, notes, and snippets.

@Garren
Last active August 14, 2020 16:59
Show Gist options
  • Save Garren/c8bcaf7c5ac87dba071cdd4c6555a221 to your computer and use it in GitHub Desktop.
Save Garren/c8bcaf7c5ac87dba071cdd4c6555a221 to your computer and use it in GitHub Desktop.
Fix node's TLS issues when installing chocol on WinServer 2016.
"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command Start-Process '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe' -ArgumentList '-NoProfile -InputFormat None -ExecutionPolicy Bypass -Command iex 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'')); choco upgrade -y python visualstudio2017-workload-vctools; Read-Host ''Type ENTER to exit'' ' -Verb RunAs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment