Hyper-V 是 windows10 系统中内置的虚机,但 win10家庭版本身不支持Hyper-V。
相关Microsoft文档: https://docs.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
下面介绍一个小技巧,可以 开启 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