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.
Create a directory to store the downloaded file.
Use the following command to download a file using the PowerShell command-line.
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.
Here is the command output:
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.
This command is easier to type.