hyper.bat

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项 

六:重启电脑

posted @ 2020-06-10 15:00  有为则无心  阅读(205)  评论(0编辑  收藏  举报