1.win+R进入终端

输入:

systeminfo

滑到最底部,查看Hyper-V选项是否都为’是‘

如果有’否‘,则想办法开启去

2.新建一个文本文件

文本内容为:

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
pause

在另存为:HyperV.bat

注意把文件类型改为所有文件,如图:

另存完后如图:

右键管理员运行该文件:

直到它运行完如图所示:

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐