Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Proxy, proxy on the wall
<proxy usesystemdefault="false" autoDetect="false" proxyaddress="" bypassonlocal="true"/>
<add address="[a-z]+\.local\.bader\.cloud$" />
git config --global http.proxy
# Install Chocolatey through a proxy
$env:chocolateyProxyLocation = ""
$proxy = new-object System.Net.WebProxy
$proxy.Address = $env:chocolateyProxyLocation
$wc = New-Object System.Net.WebClient
$wc.proxy = $proxy
iex ($wc.DownloadString(''))
# Set Proxy for package download
choco config set proxy $env:chocolateyProxyLocation
$proxyString = ""
$proxyUri = new-object System.Uri($proxyString)
[System.Net.WebRequest]::DefaultWebProxy = new-object System.Net.WebProxy ($proxyUri, $true)
$proxy = ""
Install-PackageProvider -Name NuGet -MinimumVersion -Force -Proxy $proxy
Register-PSRepository -Default -InstallationPolicy Trusted -Proxy $proxy
netsh winhttp set proxy "" bypass-list="*;<local>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment