Skip to content

Instantly share code, notes, and snippets.

@unjello
Last active December 18, 2018 07:36
Show Gist options
  • Save unjello/022ae914ea491466e8120490f08dabc7 to your computer and use it in GitHub Desktop.
Save unjello/022ae914ea491466e8120490f08dabc7 to your computer and use it in GitHub Desktop.
Powershell to fix corporate proxy and SSL issues with certain tools
(New-Object System.Net.WebClient).Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls11 -bor [System.Net.SecurityProtocolType]::Tls12 -bor [System.Net.SecurityProtocolType]::Tls -bor [System.Net.SecurityProtocolType]::Ssl3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment