命令行启用和关闭 Hyper-V
# 启用
bcdedit /set hypervisorlaunchtype auto
# 关闭
bcdedit /set hypervisorlaunchtype off
开机时选择是否启用 Hyper-V
管理员运行 CMD 或 PowerShell。
# 创建当前启动项(系统)的副本
bcdedit /copy {current} /d "Windows 10 No Hyper-V"
已将该项成功复制到 {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}。
# 设置启动项的选项值
bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} hypervisorlaunchtype off
需要删除启动项的话:
# 查看启动项
bcdedit /enum
# 删除启动项
bcdedit /delete {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
评论区