win10家庭版没有Hyper-v的解决方法

发布时间 2023-05-04 21:38:32作者: Stephenatalie
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

将上面命令复制到文本文档中,并将文档重命名Hyper.cmd,右键,以管理员方式运行

 

输入Y进行重启

 

对于win10专业版的可以直接在‘启用或关闭Windows功能’中进行开启,对于家庭版的需要自己执行脚本后进行开启