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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store