将下面内容复制到文本文件中,然后将文件命名为Hyper-V.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

重启完成后,打开控制面板 > 程序和功能 > 启用或关闭windows功能
在这里插入图片描述
发现已经可以选中Hyper-V。

Logo

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

更多推荐