windows10 程序和功能没有Hyper-V选项

1、在电脑桌面新建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

2、右键点击【Hyper-V.cmd】文件图标,在右键菜单中点击:以管理员身份运行(A),随后等待安装完成,输入Y 重启。

 3、重启之后,就可以看见有了

 

posted @ 2022-05-12 09:08  云村的王子  阅读(361)  评论(0编辑  收藏  举报