前提:已解决win11家庭版无法使用cmd文件或bat文件问题
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
3、开始使用执行hyper-v.cmd(右键选择管理员权限)
4、查看验证Hyper-V是否已安装