Skip to content

Instantly share code, notes, and snippets.

@stonith
Created June 27, 2014 00:10
Show Gist options
  • Save stonith/e4979a5fbd732324acd8 to your computer and use it in GitHub Desktop.
Save stonith/e4979a5fbd732324acd8 to your computer and use it in GitHub Desktop.
Change proxy discovery to false
$webConfig = "C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config"
$newConfig = new-item c:\temp\web.config -type file
$doc = new-object System.Xml.XmlDocument
$doc.Load($webConfig)
$doc.get_DocumentElement()."system.net".defaultProxy.proxy.usesystemdefault = "false"
$doc.Save($newConfig)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment