Skip to content

Instantly share code, notes, and snippets.

@watagashi
Last active January 14, 2016 11:30
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 watagashi/bda0e55d5955656d8e8b to your computer and use it in GitHub Desktop.
Save watagashi/bda0e55d5955656d8e8b to your computer and use it in GitHub Desktop.
Install Chocolatey behind authenticated proxy server
  1. Install lastest PowerShell

  2. Download https://chocolatey.org/install.ps1

  3. Launch Command Prompt as Administrator

  4. Type below commands

    set chocolateyproxylocation=http://example.com:8080
    set chocolateyproxyuser=user
    set chocolateyproxypassword=pass
    powershell.exe -noprofile -executionpolicy bypass -command "& '.\install.ps1'"
  5. Re-launch Command Prompt as Administrator

  6. Type below commands

    choco config set proxy http://example.com:8080
    choco config set proxyUser user
    choco config set proxyPassword pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment