Use PowerShell to download any file on Windows 10

Windows PowerShell is a tool built into Windows 10. This tool has the ability to set up more features than Command Prompt, better operating system control . Most likely, PowerShell will replace Command Prompt in the future.

Microsoft has developed PowerShell for the purpose of automating tasks and configuration management processes. Based on the .NET Framework, PowerShell includes a command line interface and scripting language.

How to use PowerShell to download any file?

To download any file on Windows 10 using PowerShell, follow the steps below:

1. Open PowerShell under Admin. To do this, press the Windows key, then enter powershell in the Search frame. On the search results list, right-click Windows PowerShell (Desktop App) and select Run as administrator.

In the UAC popup window, click Yes.

2. Next copy the link of the file you want to download using PowerShell.

Use PowerShell to download any file on Windows 10 Picture 1

3. Copy and paste the following command into Notepad:

$ client = new-object System.Net.WebClient

$ client.DownloadFile ('Download Link', 'File Destinationfile name.file extension')

4. In the above command, replace Download Link with the link you copied in step 2. Insert the location path to download the same file name you want to save with the extension to replace the Destinationfile name.file extension .

Such as the example below:

$ client = new-object System.Net.WebClient

$ client.DownloadFile ('http://thewindowsclub.thewindowsclub.netdna-cdn.com/wp-content/upload/2016/Windows-Explorer-Process-Task-Manager-600x405.png','C:UsersDigdarshanPicturesTWCTask-Manager. png ')

5. Copy the command you have finished editing in the previous step, paste it into the PowerShell window and press Enter to download the file.

Use PowerShell to download any file on Windows 10 Picture 2

6. You can now navigate to the download folder path to find the downloaded files stored here.

Use PowerShell to download any file on Windows 10 Picture 3

If you download any file, you need to enter some other information such as server login details, . then you can use the following command to download the file:

$ client = new-object System.Net.WebClient

$ client.Credentials = Get-Credential

$ client.DownloadFile ('http://thewindowsclub.thewindowsclub.netdna-cdn.com/wp-content/upload/2016/Windows-Explorer-Process-Task-Manager-600x405.png','C:UsersDigdarshanPicturesTWCTask-Manager. png ')

Refer to some of the following articles:

  1. 10 PowerShell commands help you manage the remote computer most effectively
  1. Add the 'Open PowerShell here' option to the context menu in Windows
  1. 10 new features in Windows Server 2012

Good luck!

4.8 ★ | 4 Vote

May be interested

  • How to speed up the display of right-click menus on Windows 10Photo of How to speed up the display of right-click menus on Windows 10
    when you install many utilities or software on the system, it will make the computer run slower, such as slow displaying the right-click menu. with windows 10 computers, the slow display of the mouse menu must not be rare, making your work sometimes difficult.
  • All ways to open Windows Services on Windows 10/8/7Photo of All ways to open Windows Services on Windows 10/8/7
    at some point you will need to open and manage windows service. it is possible that you want to stop certain services again or run, or disable, restore service .... then the built-in services manager tool on windows operating system will help you do the thing. this.
  • How to open a file or an application on a virtual Windows 10 Desktop?Photo of How to open a file or an application on a virtual Windows 10 Desktop?
    if you want to open a file or program on a virtual desktop, you can use task view to create a new desktop, then switch between desktops and open the files and programs you want to open in the virtual desktop. however, the simplest way to open files or programs on virtual desktop is to use the free tool to add these options to the context menu (context menu).
  • The configuration guide features the Quiet Hours on Windows 10Photo of The configuration guide features the Quiet Hours on Windows 10
    if you are having a headache because the popup notifications window appears under the corner of the screen, especially while you are focusing on working these notifications will make you feel uncomfortable and annoying.
  • Turn off location tracking on Windows 10Photo of Turn off location tracking on Windows 10
    windows 10 will collect the user's location to provide relevant information such as local weather, and some other information. however, if you feel uncomfortable or don't want windows 10 to track your location, you can turn off location tracking on windows 10.
  • How to check and access UEFI settings on Windows 10Photo of How to check and access UEFI settings on Windows 10
    if you want to access uefi firmware settings to change the default boot order or set password uifi, you do not know how to do it. you can refer to the steps taken to access uefi settings in the following article of network administration.