如果你的电脑启用或关闭windows功能中的Hyper-V选项,可以复制下面代码笔记本编辑保存成Hyper-V.txt,然后改名Hyper-V.cmd
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
然后右键选择以管理员的身份运行,安装完毕输入Y重启即可