修复 windows server 2019 下 certutil 无法下载

This commit is contained in:
bin456789 2024-04-10 21:43:49 +08:00
parent 001d1c5783
commit b3e39dec09
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -136,6 +136,10 @@ exit /b
rem bits 要求有 Content-Length 才能下载
rem https://learn.microsoft.com/en-us/windows/win32/bits/http-requirements-for-bits-downloads
rem certutil 会被 windows Defender 报毒
rem windows server 2019 要用第二条 certutil 命令
echo Download: %~1 %~2
certutil -urlcache -f -split %~1 %~2
if not exist %~2 (
certutil -urlcache -split %~1 %~2
)
exit /b