Win10家庭版开启Hyper-V

  1. 新建文本文件,复制一下内容:
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
  1. 把文件后缀名改为.cmd
  2. 管理员身份运行该脚本

你可能感兴趣的:(随笔)