win10系统没有Hyper-v解决办法

创建一个文本内容为:

 

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

 

 

保存为xx.cmd文件

在以管理员身份运行改文件。  等待下载完成,最后输入  Y.重启即可 安装好 Hyper-v

posted @ 2020-10-01 19:05  夏风中的Young_Uncle  阅读(572)  评论(0编辑  收藏  举报