Skip to content

Instantly share code, notes, and snippets.

@Hacksore
Created March 31, 2016 03:51
Show Gist options
  • Save Hacksore/072898c14d039b2e8d2f46c90572ea9f to your computer and use it in GitHub Desktop.
Save Hacksore/072898c14d039b2e8d2f46c90572ea9f to your computer and use it in GitHub Desktop.
ps1
param (
[string]$server = "http://example.com",
[string]$filename = "test.exe",
)
Invoke-WebRequest $server -OutFile %temp%\$filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment