Invoke-WebRequest GetSystemWebProxy()
问题 Under PowerShell 2.0 I know that you can set the proxy you would like to use without knowing the exact proxy settings by doing something like the following: $proxy = [System.Net.WebRequest]::GetSystemWebproxy() $proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials Now, my question is if I don't know the proxy settings can I use the above and combine it with a PowerShell 3.0 Invoke-WebRequest . Here's what I was hoping to be able to do: $proxy = [System.Net.WebRequest]: