Skip to content

Instantly share code, notes, and snippets.

@h3ssan
Last active June 20, 2022 21:57
Show Gist options
  • Save h3ssan/859d10f0e9fb58cc6fa3900adf899631 to your computer and use it in GitHub Desktop.
Save h3ssan/859d10f0e9fb58cc6fa3900adf899631 to your computer and use it in GitHub Desktop.
Some useful powershell scripts

Downloading

Invoke-WebRequest [ iwr ]

A progress bar included by default

Usage:

Invoke-WebRequest -OutFile "C:\somefile" -Uri https://www...;

System.Net.WebClient

Usage:

(New-Object System.Net.WebClient).DownloadFile("https://www...", "C:\somefile");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment