Windows 10/11 家庭版添加Hyper-V
之前买的新电脑预装的Windows 11 家庭中文版,因为还是正版系统,不想重装,也不想切换版本,就只能寻找手动添加Hyper-V 的方法。
新建一个.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
保存后以管理员权限运行