Open DeryabinKA opened 11 months ago
On any computers Invoke-WebRequest download html, no binary 7z. Worked variant:
function Download-Archive ($filename, $link) { Write-Host "Downloading" $filename -ForegroundColor Green
$cli = New-Object System.Net.WebClient; $cli.Headers['User-Agent'] = $useragent; $cli.DownloadFile($link, $filename)
}
On any computers Invoke-WebRequest download html, no binary 7z. Worked variant:
function Download-Archive ($filename, $link) { Write-Host "Downloading" $filename -ForegroundColor Green
Invoke-WebRequest -Uri $link -UserAgent $useragent -OutFile $filename
}