Answers for "powershell download file from api url"

2

powershell download a file from url

$Link = "https://www.7-zip.org/a/7z1900-x64.msi"
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("$Link","$env:USERPROFILE\Downloads\7zip1900.msi");
Posted by: Guest on March-22-2020
0

powershell download file from api url

# Source file location
$source = 'http://speedtest.tele2.net/10MB.zip'
# Destination to save the file
$destination = 'c:\dload\10MB.zip'
#Download the file
Invoke-WebRequest -Uri $source -OutFile $destination
Posted by: Guest on October-26-2021

Code answers related to "powershell download file from api url"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language