admin管理员组

文章数量:1578033

1. 开启Hyper-V

新建hyperv.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

建好后如下图所示

打开cmd文件

以管理员身份执行hyperv.cmd文件。
如果系统要你重启,便重启。
控制面板->程序和功能->启用或关闭Windows功能打开Hyper-V。


本文标签: 家庭版环境Docker