本周终于收到win10_1809推送,目前遇到的bug有部分特殊字符无法显示(见https://stackoverflow.com/questions/53972093/unable-to-insert-unicode-characters-on-file-titles https://answers.microsoft.com/en-us/windows/forum/windows_10-performance/missing-unicode-star-after-update-to-2018-october/aa912568-6893-4788-9ce0-7f85c28df51e?page=2 等等)。
但我看已安装组件的时候一下手痒,加装了Hyper-V,结果VMware Workstation的虚拟机全部无法启动,启动时会让你访问 https://kb.vmware.com/s/article/2146361 寻求解决。这篇文章又会建议你访问 https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage 查看解决办法。
微软的文章参看“Disable Windows Defender Credential Guard”这部分,大意是:
1.运行gpedit.msc
,找到Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security
,设置成Disable
。
2.删除注册表三个键值,一定要三个都一起删干净:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA\LsaCfgFlags
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\EnableVirtualizationBasedSecurity
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\RequirePlatformSecurityFeatures
3.运行以下命令,注意X:
是一个未用的盘符
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
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:
mountvol X: /d
但微软这篇文章也是有问题的,第3部分的命令行里面,mountvol
在x86/x64平台没有/s
这个参数,可以先用mountvol /l
列出保留分区的挂载名称,再挂载,或者用diskpart
去挂载。
但不止文章,微软自己的powershell脚本(现在是version3.6)也复制粘贴错了,这样人说什么好……
目前找到的解决办法是直接干掉算了,以管理员权限运行cmd,执行
bcdedit /set hypervisorlaunchtype off
重启。 如果哪天想暂时不用VMware Workstation而用Hyper-V,执行
bcdedit /set hypervisorlaunchtype auto
直接删掉Hyper-V也行,它留给没有vmware workstation算了。 CMD执行
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All
PowerShell执行
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All