Proxy Issues with Install Module Proxy Issues with Install Module powershell powershell

Proxy Issues with Install Module


A per Keith Hill's suggestion, adding the PowerShellGallery repo manually worked:

Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2

I had trouble getting this working with the -proxy switch, so I set the proxy via netsh which did the trick:

netsh winhttp set proxy proxy-server="http=myproxy:8080"


Proxy can be set via -Proxy parameter of many network cmdlets or $PSDefaultParameterValues = @{ "*:Proxy"="http://proxy:port" }