mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
修复 windows server 2019 下 certutil 无法下载
This commit is contained in:
parent
001d1c5783
commit
b3e39dec09
@ -136,6 +136,10 @@ exit /b
|
|||||||
rem bits 要求有 Content-Length 才能下载
|
rem bits 要求有 Content-Length 才能下载
|
||||||
rem https://learn.microsoft.com/en-us/windows/win32/bits/http-requirements-for-bits-downloads
|
rem https://learn.microsoft.com/en-us/windows/win32/bits/http-requirements-for-bits-downloads
|
||||||
rem certutil 会被 windows Defender 报毒
|
rem certutil 会被 windows Defender 报毒
|
||||||
|
rem windows server 2019 要用第二条 certutil 命令
|
||||||
echo Download: %~1 %~2
|
echo Download: %~1 %~2
|
||||||
certutil -urlcache -f -split %~1 %~2
|
certutil -urlcache -f -split %~1 %~2
|
||||||
|
if not exist %~2 (
|
||||||
|
certutil -urlcache -split %~1 %~2
|
||||||
|
)
|
||||||
exit /b
|
exit /b
|
||||||
|
Loading…
x
Reference in New Issue
Block a user