Skip to content

Instantly share code, notes, and snippets.

@Laffs2k5
Last active January 8, 2019 09:29
Show Gist options
  • Save Laffs2k5/c83882f7a186562192bc7ebee52069ba to your computer and use it in GitHub Desktop.
Save Laffs2k5/c83882f7a186562192bc7ebee52069ba to your computer and use it in GitHub Desktop.
Get-Chocolatey.ps1
# Chocolatey Non-Administrative install
$InstallDir='C:\ProgramData\chocoportable'
$env:ChocolateyInstall="$InstallDir"
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass
# All install options - offline, proxy, etc at https://chocolatey.org/install
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Portable git install
choco install git.portable
# Chocolatey Administrative install
Set-ExecutionPolicy Bypass -Scope Process -Force
Invoke-Expression ((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