pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >
网页链接for /f %%i in ('findstr /i .
网页链接 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del
网页链接Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
把代码粘贴到记事本然后保存成hyper.bat,右键管理员运行,提示关机的时候重启,之后就可以搜得到了