首页 > 其他 > 详细

hyper.bat

时间:2020-06-10 15:35:22      阅读:42      评论:0      收藏:0      [点我收藏+]

window10家庭版添加hyper虚拟机选项

一:创建txt文件

二:复制下面代码到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

三:修改txt文件名和后缀为hyper.bat

四:执行

五:打开 启动和关闭windows功能 (点击windows输入hyper) 勾选hyper项 

六:重启电脑

hyper.bat

原文:https://www.cnblogs.com/blogphp/p/13085207.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!