Download Files With PowerShell

In this blog post,  I will show you to use PowerShell to download a file and save it on your computer using PowerShell.

Using PowerShell to download files can be very handy in cases where you need to download files as part of an automated task or if you don’t want to use the browser.


To download files with PowerShell we use the invoke-command cmdlet which can be a shortcut to wget.


In the following example, I will use PowerShell to download a PowerShell script from GitHub and save under c:\devops.

wget -uri "" -OutFile C:\DevOps\EnableWinRM.ps1

Success! You're on the list.