Would you like to learn how to download a file using the Powershell? In this tutorial, we are going to show you how to download a file using the Powershell command-line on a computer running Windows.

• Windows 7
• Windows 10
• Windows 2012
• Windows 2016

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial PowerShell - Download a File

On the Start menu, open an application named: Windows PowerShell.

Powershell on Start menu

Create a directory to store the downloaded file.

Copy to Clipboard

Use the following command to download a file using the PowerShell command-line.

Copy to Clipboard

In our example, we downloaded the official Firefox installer.

In our example, we saved the Firefox installer inside the directory: C:\tmp.

In our example, we saved the Firefox installer using the name FirefoxInstaller.exe.

Keep in mind that you need to change the URL and file name.

Access the directory and verify if the file was downloaded correctly.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Congratulations! You are able to download files using the Powershell command-line.

If you have the latest version of Powershell installed, you may use the following command.

Copy to Clipboard

This command is easier to type.