Created
January 31, 2018 13:16
-
-
Save edwint88/3189524fbd3adc6179f0718d8d8279fb to your computer and use it in GitHub Desktop.
How to install chocolatey behind a proxy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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