Win11(家庭版)增加Hyper-V管理器

新建一个HyperV.bat文件:

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
pause

将文件保存在C盘根目录下。然后以管理员的权限执行。

等bat文件执行完毕后,就可以在“开始”菜单中搜索“Hyper-V 管理器”。