windows10家庭版安装hype-v方法

问题现象:windows 10 家庭版需要使用docker但是必须先开启hyper-v

解决办法:

 1.先新建一个txt文档

2.将以下代码复制到txt文档里面

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

3.修改txt文档后缀为cmd,保存后运行(建议以管理员身份运行)

 

posted @ 2019-05-27 22:13  `爱过的那张脸`  阅读(800)  评论(0)    收藏  举报