Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PowerShell function to install Chocolatey if it isn't already.
Function Install-Choco
Set-ExecutionPolicy Bypass -force
If (!(Test-Path -Path "C:\ProgramData\chocolatey"))
$env:chocolateyUseWindowsCompression = 'false'
Invoke-WebRequest -UseBasicParsing | Invoke-Expression
choco feature enable -n=allowGlobalConfirmation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.