1、在桌面建立 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

2、以管理员方式运行此文件重启

  重启后就有Hyper-V了,打开控制面板-程序 则看到

相关文章:

  • 2021-08-31
  • 2021-12-10
  • 2021-06-11
  • 2021-07-27
  • 2022-12-23
  • 2021-04-05
  • 2021-10-23
猜你喜欢
  • 2021-08-14
  • 2021-05-23
  • 2021-10-25
  • 2021-11-19
  • 2021-12-06
  • 2021-12-06
  • 2021-12-06
相关资源
相似解决方案