Skip to content

Instantly share code, notes, and snippets.

@pradyumnac
Last active September 1, 2022 11:05
Show Gist options
  • Save pradyumnac/9800d5936a3bc54e17807563b0ff0409 to your computer and use it in GitHub Desktop.
Save pradyumnac/9800d5936a3bc54e17807563b0ff0409 to your computer and use it in GitHub Desktop.
Install chocolatey from command prompt (Admin Shell)
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco feature enable -n allowGlobalConfirmation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment