Skip to content

Instantly share code, notes, and snippets.

@JonathanTech
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanTech/77905bd0cd128ccafd50 to your computer and use it in GitHub Desktop.
Save JonathanTech/77905bd0cd128ccafd50 to your computer and use it in GitHub Desktop.
Installs Chocolatey behind a proxy using the machines default proxy settings.
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex (& {$x = (new-object net.webclient); $x.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials; return $x.DownloadString('https://chocolatey.org/install.ps1')})" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment