解决windows10没有Hyper-V

将下面命令新建一个cmd可执行文件双击,等待安装完毕,最后输入Y重启电脑

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
posted @ 2021-01-09 12:38  _chenyl  阅读(178)  评论(0编辑  收藏  举报