Windows 10家庭版启用Hyper-V

Windows 10 家庭版默认是没有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

 

Leave a Reply

Your email address will not be published. Required fields are marked *