Win10家庭版Hyper-V出坑,切换回vmware
本文主要参考自Win10家庭版Hyper-V出坑(完美卸载,冲突解决以及Device Guard问题) 连目的和背景都一样,在Win10家庭版开启Hyper-V了,但是用不惯这玩意儿,想要回到Vmware的怀抱
一、执行以下命令
mountvol X: /s
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d “DebugTool” /application osloader
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path “\EFI\Microsoft\Boot\SecConfig.efi”
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d
重启计算机,按照系统引导时的提示关闭device guard。
二、禁用Hyper-V
启用或关闭Windows功能,去掉 Hyper-V前面的钩钩。
重启后,会发现之前开始菜单的Hyper-V已经没有了。
三、彻底关闭Hyper-V
命令提示符(管理员).执行下面的命令:
bcdedit /enum
你会看到系统列出了若干启动项
执行以下命令,注意花括号里是上一步我们默认启动项的标识符(第一个红色箭头):
bcdedit /set {current} hypervisorlaunchtype off
重启,搞定
附带用批处理开启组策略(gpedit.msc)功能:
@echo off
pushd “%~dp0”
dir /b %systemroot%\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >gp.txt
dir /b %systemroot%\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>gp.txt
for /f %%i in (‘findstr /i . gp.txt 2^>nul’) do dism /online /norestart /add-package:"%systemroot%\servicing\Packages%%i"
pause