Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sandorjanssen/a723a78e5ae8af5c9a1fd466a237dfe1 to your computer and use it in GitHub Desktop.
Save sandorjanssen/a723a78e5ae8af5c9a1fd466a237dfe1 to your computer and use it in GitHub Desktop.
Powershell proxy
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials
Or:
$wc = New-Object System.Net.WebClient
$wc.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
$wc.Proxy.Address = "http://proxyurl"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment