windows10家庭版开启Hyper-

  1. 新建文本文件script.txt,输入以下内容
pushd "%~dp0"

dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt

for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"

del hv.txt

Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL

Pause
  1. 更改文件后缀为.bat,双击运行,就可以安装Hyper-V
posted @ 2023-04-04 11:26  裏表異体  阅读(27)  评论(0编辑  收藏  举报