Skip to content

Instantly share code, notes, and snippets.

@holmesconan
Created November 15, 2018 01:33
Show Gist options
  • Save holmesconan/d24cfca568b7fd1d2bffe1c912abd7cf to your computer and use it in GitHub Desktop.
Save holmesconan/d24cfca568b7fd1d2bffe1c912abd7cf to your computer and use it in GitHub Desktop.
Chocolatey installer
@echo Install Chocolatey
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
Get-ExecutionPolicy
# Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Bypass -Scope Process
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment