新建文本文件Hyper-V.txt,复制粘贴下面代码,再把扩展名改成.bat,运行,重启。
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
程序和功能 - 启用或关闭Windows功能,即可看到Hyper-V出现啦!