首页 > 技术文章 > 关于win10 安装 hyper-V

go-wandering 2021-10-17 23:19 原文

新建文档,输入以下内容

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

另存为Hyper-V.cmd放置电脑桌面,并以管理员身份运行

等待最终安装完,提示是否重启,输入Y,重启电脑后:

控制面板--程序--启用或关闭Windows功能,看下Hyper-V是否已安装

是否已启用

推荐阅读