Windows家庭版打开或关闭Hyper-V
2021-05-27 22:00
标签:pac 管理员 launch line hyperv package lang add ble 创建 右键-用管理员权限打开 创建 Windows家庭版打开或关闭Hyper-V 标签:pac 管理员 launch line hyperv package lang add ble 原文地址:https://www.cnblogs.com/zhanglikun/p/14788448.html打开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
上一篇:es6中常用的方法或API
下一篇:zabbix_api 接口调用
文章标题:Windows家庭版打开或关闭Hyper-V
文章链接:http://soscw.com/index.php/essay/88385.html