1、同时按【WIN+R】,打开【运行】,输入notepad,打开记事本。
2、保存如下代码:pushd "%~dp0"dir /b %SystemRoot%\servicing\Pack锾攒揉敫ages\*Hyper-V*.mum >hv.txtfor /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"del hv.txtDism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALLPause
3、保存为.bat的批处理文件。
4、在保存文件上右键选择【以管理员身份运行】。
5、等待安装完成。
6、运行完成,重启计算机,看到Hyperv安装成功了。