1. 开启Hyper-V
新建hyperv.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
建好后如下图所示
打开cmd文件
以管理员身份执行hyperv.cmd
文件。
如果系统要你重启,便重启。
在控制面板->程序和功能->启用或关闭Windows功能
打开Hyper-