hakk

software development, devops, and other drivel
Tree lined path

Download a file from the web using PowerShell

The Invoke-WebRequest command in PowerShell is very powerful and can be used to do much more then downloading a file. Check out the Invoke-WebRequest documentation page to learn more.

Download a file from the web (http, https)

Invoke-WebRequest -Uri "http://192.168.100.123:3000/myzipfile.zip" -OutFile "C:\Documents\myzipfile.zip"

The above command well download a file from the web (in this case a local ip address) and save if under your Documents folder.

Need to Extract a zip file?

Check out Expand-Archive in PowerShell