Downloading a file from the Windows console without first installing a command-line tool
Posted by jpluimers on 2024/10/09
Note that the below methods likely will cause security warnings if a Windows machine has been properly configured, but in most cases at least one of them works.
- using cURL (Widows 10 and up)
curl --url https://speed.hetzner.de/100MB.bin --output %TEMP%\100MB.bin - using [Wayback/Archive]
certutil| Microsoft Docs (at least Windows 7 and up; needs UAC elevation)
certutil.exe -urlcache -split -f https://speed.hetzner.de/100MB.bin %TEMP%\100MB.bin - using PowerShell (at least Windows Vista and up)
powershell.exe -Command (New-Object System.Net.WebClient).DownloadFile('https://speed.hetzner.de/100MB.bin','%TEMP%\100MB.bin')
I think it works for all versions of curl, certutil, and PowerShell though I did not have anything older than up-to-date Windows 7 (having PowerShell version 3) and recent to test on.
There is a a deprecated way too using bitsadmin which at the time of writing still works in Windows 10, but likely won’t work any more in the future.
bitsadmin /transfer myDownloadJob /download /priority normal https://speed.hetzner.de/100MB.bin %TEMP%\100MB.bin
Via:
- [Wayback/Archive] windows download file from command line – Recherche Google
- [Wayback/Archive] How to download files from command line in Windows like wget or curl – Super User (thanks [Wayback/Archive] Peter Mortensen, [Wayback/Archive] Ubeogesh, [Wayback/Archive] schellack, [Wayback/Archive] npocmaka, [Wayback/Archive] BrainSlugs83, and [Wayback/Archive] Zombo)
Related:
- [Wayback/Archive] large test file for downloading – Google Search
- [Wayback/Archive] Test File Download | 10GB, 5GB, 1GB, 512MB, 200MB, 100MB, and More
–jeroen






Leave a comment