How to Enable/Disable Windows Defender Credential Guard

Got “VMware Workstation and Device/Credential Guard are not compatible” error in VMware Workstation on Windows 10?
Solution: You need to disable Device Guard and turn off Hyper-V.

Step 1:
gpedit.msc
Computer Configuration -> Administrative Template -> System -> Device Guard
Set “Turn On Virtualization Based Security” to Disabled

Or regedit
Navigate HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceGuard
Add a new DWORD value named EnableVirtualizationBasedSecurity and set its value to 0

Step 2:
Turn off Hyper-V
bcdedit /set hypervisorlaunchtype off

Step 3:
Reboot.

Recovery steps:
Step 1:
gpedit.msc
Computer Configuration -> Administrative Template -> System -> Device Guard
Set “Turn On Virtualization Based Security” to Not configured

Or regedit
Navigate HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\DeviceGuard
Delete the registry “EnableVirtualizationBasedSecurity”

Step 2:
Turn on Hyper-V
bcdedit /set hypervisorlaunchtype auto

Step 3:
Reboot.