window10家庭版 安装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 @ 2024-03-09 17:59  vanjn  阅读(330)  评论(0编辑  收藏  举报