mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
修复 windows server 2019 下 certutil 无法下载
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user