Skip to content

Instantly share code, notes, and snippets.

@edwint88
Created January 31, 2018 13:16
Show Gist options
  • Save edwint88/3189524fbd3adc6179f0718d8d8279fb to your computer and use it in GitHub Desktop.
Save edwint88/3189524fbd3adc6179f0718d8d8279fb to your computer and use it in GitHub Desktop.
How to install chocolatey behind a proxy
//in powershel
$client= ((New-Object System.Net.WebClient)); //https://msdn.microsoft.com/en-us/library/system.net.webclient(v=vs.110).aspx
$client.Proxy = ((New-Object System.Net.WebProxy("http://127.0.0.1:3128"))); //or set the credentials if you don't use cntlm
Set-ExecutionPolicy Bypass -Scope Process -Force; iex $client.DownloadString('https://chocolatey.org/install.ps1')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment