Created
July 1, 2022 10:42
-
-
Save limadm/aef9529ef3a4c329693b9a1ae70bd606 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# windows vista | |
bitsadmin /transfer myDownloadJob /download /priority normal http://downloadsrv/10mb.zip c:\10mb.zip | |
# windows 7 / 2008 | |
Start-BitsTransfer -Source "https://example.com/file.zip" -Destination "C:\file.zip" -DisplayName "myDownloadJob" | |
## | |
$client = new-object System.Net.WebClient | |
# $client.Credentials = Get-Credential | |
$client.DownloadFile("http://www.xyz.net/file.txt","C:\tmp\file.txt") | |
# windows 8 / 2012 | |
certutil.exe -urlcache -split -f "https://download.sysinternals.com/files/PSTools.zip" pstools.zip | |
## | |
Invoke-WebRequest -OutFile index.html -Uri https://superuser.com | |
iwr -outf index.html https://superuser.com | |
# windows 10 | |
curl.exe --output index.html --url https://superuser.com | |
curl.exe -o index.html https://superuser.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment