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:
$pro
Use can use this code :
$dest = "http://www.google.fr" $proxyurl = ([System.Net.WebRequest]::GetSystemWebproxy()).GetProxy($dest) Invoke-WebRequest $dest -Proxy $proxyurl -ProxyUseDefaultCredentials