24h2 需要安装 wmic

This commit is contained in:
bin456789 2024-06-23 01:25:39 +08:00
parent 5b0cf3df1a
commit 2c2dd923ab
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -30,6 +30,12 @@ if not exist %tmp% (
md %tmp%
)
rem 24h2 默认禁用了 wmic
where wmic >nul 2>nul
if errorlevel 1 (
DISM /Online /Add-Capability /CapabilityName:WMIC
)
rem 检查是否国内
if not exist %tmp%\geoip (
rem 部分地区 www.cloudflare.com 被墙