Skip to content

Instantly share code, notes, and snippets.

@rroman81
Created April 13, 2020 07:41
Show Gist options
  • Save rroman81/7f6da0f07c83497c562a668819708118 to your computer and use it in GitHub Desktop.
Save rroman81/7f6da0f07c83497c562a668819708118 to your computer and use it in GitHub Desktop.
Sets the system proxy settings in active PowerShell session
[System.Net.WebRequest]::DefaultWebProxy = [System.Net.WebRequest]::GetSystemWebProxy()
[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment