To disable HVCI, open Windows Security, go to Device security, select Core isolation details, switch Memory integrity to Off, and restart the PC. HVCI is the technical name for the same feature, and turning it off removes a kernel protection, so do it only to get past a specific driver or software problem.
Steps and registry values below come from Microsoft Learn, as of November 2026. If you want the opposite direction, see how to enable memory integrity in Windows 11.
How to disable HVCI in Windows Security
- Open the Start menu and search for Windows Security.
- Select Device security.
- Under Core isolation, select Core isolation details.
- Switch Memory integrity to Off.
- Restart the PC.
Microsoft documents the location as Windows Security > Device security > Core isolation details > Memory integrity. It is the same switch you use to turn the feature on.
Since Windows 11 22H2, Windows Security shows a warning when memory integrity is turned off. The warning indicator appears on the Windows Security icon in the taskbar and in the notification center. You can dismiss it from inside Windows Security.
What you give up when HVCI is off
Memory integrity runs kernel mode code integrity inside an isolated virtual environment built by the Windows hypervisor. Kernel mode code integrity checks every kernel mode driver and binary before it starts, and blocks unsigned or untrusted drivers from loading. Memory integrity also makes sure kernel memory pages become executable only after passing those checks, and that executable pages are never writable.
Microsoft says HVCI protects against attacks such as WannaCry that rely on injecting malicious code into the kernel. On supported Windows versions it also enforces the Microsoft vulnerable-driver blocklist. With HVCI off, you lose those protections. That is the reason to treat this as a temporary workaround, not a tuning tweak.
Why people turn it off
Microsoft warns that some applications and device drivers are incompatible with memory integrity. The result can be a device or program that malfunctions and, in rare cases, a blue screen at boot. These problems can appear after the feature is turned on or during enablement.
Before you disable it, try the less drastic fix. Open Device Manager, find the device whose driver fails to load or crashes, and update the driver. Better still, install the newest version from the hardware vendor. Old utilities that install their own kernel driver, such as hardware monitors, overclocking tools or virtual drive software, are common causes, so check whether the program has an update.
Performance is the other common reason. Microsoft says memory integrity works better on Intel Kaby Lake and newer processors with Mode-Based Execution Control, and on AMD Zen 2 and newer processors with Guest Mode Execute Trap. Older processors emulate these features (Restricted User Mode) and take a bigger performance hit. Microsoft publishes no single percentage, so measure your own workload before deciding.
If the switch is greyed out
When a policy controls the setting, the interface is greyed out and shows This setting is managed by your administrator. Microsoft documents a registry change that produces this state, which means a PC can also be locked this way by a script or management tool. On a work or school PC, only the policy owner should change it, so ask your IT team.
On a PC you own, the cause is often one of the methods below, such as a Group Policy setting or a UEFI lock. Work out which one was used before changing anything.
Disable HVCI with Group Policy
- Run
gpedit.msc. - Go to Computer Configuration > Administrative Templates > System > Device Guard.
- Open Turn on Virtualization Based Security.
- Set the policy to Disabled, or to Not Configured to stop managing it, and select OK.
- Restart, or run
gpupdate /forcein an elevated Command Prompt on a domain-joined computer.
Microsoft's page describes the Enabled options for this policy. The Disabled and Not Configured states follow the standard Group Policy meaning, but Microsoft does not spell out a disable procedure, so verify the result with the check further down. If the policy was Enabled with UEFI lock, Group Policy alone will not turn it off. See the UEFI lock section.
Disable HVCI with the registry
Microsoft documents this value in its recovery steps. Run it in an elevated Command Prompt, then restart:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f
This turns off memory integrity only. The other DeviceGuard values, such as EnableVirtualizationBasedSecurity, are left alone, so virtualization-based security itself can stay enabled. If a Group Policy object or Intune profile still enables the feature, it can write the value back, so remove that policy first. Back up the key before you edit it (reg export) so you can restore it.
If it was enabled with UEFI lock
Microsoft says that once memory integrity is enabled with UEFI lock, you must have access to the UEFI BIOS menu to turn off Secure Boot if you want to turn off memory integrity. The same applies to Windows RE recovery: with the lock on, you need to disable Secure Boot to complete the steps. Menu names differ by manufacturer, so use your board or laptop manual. Note the current firmware values before changing them, and turn Secure Boot back on afterwards if you still want it.
Disable it from Windows RE if the PC won't boot
If a compatibility problem causes a critical error at boot, Microsoft's recovery sequence is:
- Disable any policy that enables VBS and memory integrity, such as Group Policy.
- Boot into the Windows Recovery Environment on the affected computer.
- After logging in, run the
reg addcommand from the previous section. - Restart the device.
Disable memory integrity for a Hyper-V virtual machine
For a Hyper-V guest, the host administrator can opt a VM out of virtualization-based security with this PowerShell command, replacing <VMName> with the VM's name:
Set-VMSecurity -VMName <VMName> -VirtualizationBasedSecurityOptOut $true
Microsoft notes that virtual Fibre Channel adapters and the AllowFullSCSICommandSet option for pass-through disks are not compatible with memory integrity, and that you must opt out before using them.
Check that it is actually off
The toggle does not prove the state. After the restart, run this in an elevated PowerShell window:
Get-CimInstance -ClassName Win32_DeviceGuard -Namespace root\Microsoft\Windows\DeviceGuard
In SecurityServicesRunning, the value 2 means memory integrity is running. If the list no longer contains 2, it is off. Example output after disabling, trimmed:
SecurityServicesConfigured : {0}
SecurityServicesRunning : {0}
VirtualizationBasedSecurityStatus : 0
You can also run msinfo32.exe from an elevated session. The VBS features are listed at the bottom of the System Summary page.
If it still won't stay off
Check, in order: a Group Policy or Intune setting that re-enables it, an App Control policy with Hypervisor-protected Code Integrity selected (Microsoft says this turns memory integrity on even in audit mode), and a UEFI lock. Fix the one that applies, restart, and read SecurityServicesRunning again. Once the incompatible driver is updated or removed, turn memory integrity back on.
Frequently asked questions
- Is HVCI the same as memory integrity?
- Yes. Memory integrity is the Windows Security name for hypervisor-protected code integrity (HVCI), also called hypervisor enforced code integrity. It was originally released as part of Device Guard, which is why the Group Policy and registry settings still use the name Device Guard.
- Do I need to restart after turning off memory integrity?
- Yes. The change only takes effect after a restart. Until then, memory integrity keeps running. You can confirm the result afterwards by checking that SecurityServicesRunning no longer contains the value 2 in the Win32_DeviceGuard WMI class.
- Why does Windows keep warning me after I turn it off?
- Since Windows 11 22H2, Windows Security shows a warning when memory integrity is off. The warning also appears on the Windows Security taskbar icon and in the notification center. Microsoft says you can dismiss it from within Windows Security.
- Will Windows turn it back on by itself?
- Microsoft says memory integrity is enabled by default on many new Windows 11 devices and that enablement is expanding to eligible existing devices. It also says existing explicit user or administrator settings are respected, so a setting you chose yourself should stay as you left it.