#This file is an exmaple of making powershell connect to the proxyserver localy hosted $wc = New-Object System.Net.WebClient $WebProxy = New-Object System.Net.WebProxy("http://127.0.0.1:8080",$true) $WebProxy.UseDefaultCredentials = $true $wc.Proxy = $WebProxy $wc.DownloadString("http://www.google.com")