Tuesday, November 30, 2021

download a file using powershell

One of the first things we try to do on a fresh Windows server install would be to download and install Chrome or Firefox, due to the extreme tiresomeness of "locked down Internet Explorer" which doesn't allow any downloads by default. A quick way to do that is via powershell, courtesy this page

powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://example.com/file.zip', 'c:\somefile.zip') }"

No comments:

Post a Comment