win10找不到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了,打开控制面板-程序 则看到

posted @ 2020-11-27 16:16  洺剑残虹  阅读(1832)  评论(0编辑  收藏  举报