I'm having trouble installing Chocolatey packages due to a corporate proxy. Internet Explorer is configured correctly, but I am having problems working with it through Powershell.
I can use the web client to load pages, for example. Microsoft.com, but Chocolatey ultimately doesn’t download packages asking for “Proxy Credentials”: this will not be considered valid. Sometimes I just get the error message "Exception causes" DownloadFile "with arguments" 2 ":" The remote server responded with an error: (407) Proxy authentication required. "
I have two machines, one of which can download packages in order, and the other gives the errors above, but they both show direct access (as shown below):
PS C:\Windows\system32> netsh winhttp import proxy source=ie
Current WinHTTP proxy settings:
Direct access (no proxy server).
PS C:\Windows\system32> netsh winhttp show proxy
Current WinHTTP proxy settings:
Direct access (no proxy server).
I'm not too sure what is going on here. Any suggestions?
source
share