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

将文件重命名为hv.bat

右键文件,管理员身份运行,输入Y重启电脑。

posted @ 2026-05-12 12:16  流云的博客  阅读(7)  评论(0)    收藏  举报