📌  相关文章
📜  安装 hyper-v Windows 10 Home - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:37.633000             🧑  作者: Mango

代码示例1
pushd "%~dp0"
 dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt
 for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
 del hv.txt
 Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
 pause