Win10没有Hyper-V的解决方法

windows10家庭版,程序添加的地方没有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重启电脑,然后就可以用了。

 

代码来源:https://www.jianshu.com/p/96aa6eeacb56

posted @ 2023-10-25 15:58  C羽言  阅读(596)  评论(0)    收藏  举报