Download a file in PowerShell

iwr is the alias on every platform. The curl and wget aliases only existed in Windows PowerShell 5.1 and were dropped in PowerShell 6+, where those names run the real curl.exe/wget if installed. -OutFile writes the body to disk.

Shell: PowerShell · Category: network · Risk level: caution

What you provide

The exact syntax, a worked example and the flag reference are behind sign-in.

This is a limited preview. The full walkthrough, command syntax and copy-ready examples are available to signed-in users.

Sign in to read the full page