解决VMware安装问题 - 安装程序检测到主机启用了Hyper-V或Device/Credential Guard……
原因当安装 VMware Workstation 时出现 “检测到主机启用了 Hyper-V 或 Device/Credential Guard” 的错误是因为 VMware 与 Windows 自带的虚拟化安全功能如 Hyper-V、Device Guard、Credential Guard存在底层冲突。这些功能均需独占使用 CPU 的硬件虚拟化扩展如 Intel VT-x 或 AMD-V而 VMware 无法在它们启用时正常运行。解决以管理员身份运行CMD依次执行bcdedit /set hypervisorlaunchtype offdism /online /disable-feature /featurename:HypervisorPlatform /norestartdism /online /disable-feature /featurename:VirtualMachinePlatform /norestart然后重启电脑重启后重新运行VMware安装程序。如果安装过程中还出现“运行上述命令并重启还是有 安装程序检测到主机启用了Hyper-V或Device/Credential Guard。要在启用了Hyper-V或Device/Credential Guard的...... ”说明是Device/Credential Guard在起作用不是普通Hyper-V比较顽固。在管理员CMD运行msinfo32如果已关闭则显示未启用或已禁用如果没有关闭基于虚拟化的安全性会显示正在运行或已启用正在运行的话这就是问题所在Device/Credential Guard还在运行需要彻底关闭它。以管理员身份运行CMD依次执行mountvol X: /scopy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Ybcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d DebugTool /application osloaderbcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path \EFI\Microsoft\Boot\SecConfig.efibcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215}bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBSbcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partitionX:mountvol X: /d然后重启电脑重启时会出现一个确认界面按F3确认关闭Credential Guard。再次运行安装程序完美解决