I came across the following error when trying to run VMWare Workstation on my Windows 10 desktop.

 

I had previously used VMWare Workstation many times and had not configured Hyper-V at all so the reason for this error to appear out of the blue was confusing.

 

Hyper=V was not an installed feature on my OS.

A number of articled i read went through steps to disable DeviceGuard.

and run commands like:

bcdedit /set hypervisorlaunchtype off
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

None of these worked for me.

In the end I remembered enabling something in WIndows Defender at the recomndation of Microsoft. A little investigation later and I found the problem was related to the "Core Isolation" / "Memory Integrity" protection was causing the error.

To get past the error this feature needs to be disabled.

If you cannot turn this off in the GUI you can do this by modifying the registry key as follows:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity

Set the "Enabled" key to 0

Once this is disabled reboot the computer and VMWare Workstation will boot.