win10自带的虚拟机,居然是免费的。
把下边的代码保存到一个以 .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 /
这里文件地址,直接下载也可
上图证明: