Invoke-WebRequest
CautionHTTP request (PS)
Invoke-WebRequest <url> -OutFile <file>
Fetches a URL or downloads a file (curl/wget equivalent).
Examples
Invoke-WebRequest https://example.com/x.zip -OutFile x.zipDownload a file
Syntax
Invoke-WebRequest <url> [-OutFile <file>] [-UseBasicParsing]
Before you run it
Downloads from external sources; verify the source.
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store