首页 > Windows开发 > 详细

Windows家庭版打开或关闭Hyper-V

时间:2021-05-20 09:55:43      阅读:21      评论:0      收藏:0      [点我收藏+]

打开hyper-v

创建open_hyper-v.bat文件

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

右键-用管理员权限打开

关闭hyper-v

创建close_hyper-v.bat文件

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 /Remove-Package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /disable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

bcdedit /set hypervisorlaunchtype off

Windows家庭版打开或关闭Hyper-V

原文:https://www.cnblogs.com/zhanglikun/p/14788448.html

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