To enable memory integrity, open Windows Security, go to Device security, select Core isolation details, switch Memory integrity to On, and restart the PC. If the switch is missing, greyed out or refuses to turn on, the cause is almost always firmware settings, missing hardware support or an incompatible driver, all covered below.
The steps below apply to Windows 11. They also match Microsoft's documentation for Windows 10 devices with supporting hardware. Commands and menu names come from Microsoft Learn, as of November 2026.
How to enable memory integrity in Windows Security
- Open the Start menu and search for Windows Security.
- Select Device security.
- Under Core isolation, select Core isolation details.
- Turn Memory integrity on.
- Restart the PC when prompted. The setting does not take effect until after the restart.
The full path in Microsoft's documentation is Windows Security > Device security > Core isolation details > Memory integrity. Since Windows 11 22H2, Windows Security also shows a warning if memory integrity is turned off, and the warning appears on the Windows Security icon in the taskbar and in the notification center. You can dismiss the warning from inside Windows Security.
What memory integrity does
Memory integrity is a feature of virtualization-based security (VBS). VBS uses the Windows hypervisor to build an isolated virtual environment, and memory integrity runs kernel mode code integrity inside it. Kernel mode code integrity is the check that every kernel mode driver and binary goes through before it loads, so that unsigned or untrusted drivers cannot enter kernel memory.
Memory integrity also restricts kernel memory allocations. A kernel memory page only becomes executable after it passes the code integrity checks in the isolated environment, and executable pages are never writable. Even if malware finds a buffer overflow, it cannot modify executable code pages, and it cannot make modified memory executable. Microsoft also notes that it protects changes to the Control Flow Guard (CFG) bitmap for kernel mode drivers.
Check that memory integrity is actually running
A toggle that shows On is not proof that VBS started. Verify it in one of two ways from an elevated session.
Option 1: query the Win32_DeviceGuard WMI class from an elevated PowerShell window.
Get-CimInstance -ClassName Win32_DeviceGuard -Namespace root\Microsoft\Windows\DeviceGuard
Read two properties in the output. SecurityServicesRunning contains 2 when memory integrity is running (1 means Credential Guard). VirtualizationBasedSecurityStatus is 0 when VBS is not enabled, 1 when it is enabled but not running, and 2 when it is enabled and running. Example output, trimmed:
SecurityServicesConfigured : {2}
SecurityServicesRunning : {2}
VirtualizationBasedSecurityStatus : 2
Option 2: run msinfo32.exe from an elevated PowerShell session. The VBS features are listed at the bottom of the System Summary page.
If SecurityServicesConfigured contains 2 but SecurityServicesRunning does not, memory integrity is configured but did not start. Restart once, then check the hardware requirements in the next section.
Why the switch is missing, greyed out or won't turn on
VBS needs specific hardware and firmware support. Microsoft's OEM documentation lists these requirements:
| Requirement | What it means for you |
|---|---|
| 64-bit CPU with virtualization extensions | Intel VT-x or AMD-V, switched on in the firmware (UEFI) settings |
| Second Level Address Translation (SLAT) | Intel VT-x2 with Extended Page Tables, or AMD-V with Rapid Virtualization Indexing |
| IOMMU or SMMU | Intel VT-d, AMD-Vi or Arm64 SMMU, for DMA-capable devices |
| TPM 2.0 | A TPM present and enabled |
| Secure Boot | Must be enabled on devices that use VBS |
| Compatible drivers | Every system driver must work with memory integrity |
If a requirement is missing, check the firmware setup screen first: virtualization extensions and Secure Boot are the two settings people most often find disabled. The menu names differ between manufacturers, so look in the manual or support page for your board or laptop. Do not change firmware settings you do not understand, and note your current values before changing anything.
If you manage the PC through an organization, the setting may be locked on purpose. When a policy controls it, the interface shows This setting is managed by your administrator, and only the policy owner can change it.
Fix incompatible drivers
Microsoft warns that some applications and device drivers are incompatible with memory integrity. The result can be a device that stops working, software that malfunctions, and in rare cases a blue screen at boot. The problem can appear after you turn the feature on or during the enablement itself.
The first thing to try is an updated driver. Open Device Manager, find the device that stopped working, and update its driver. Better still, install the latest version from the hardware vendor, because vendors fix memory integrity violations in new driver releases. Old utilities that install their own kernel drivers (hardware monitors, overclocking tools, older anti-cheat or virtual drive software) are common suspects, so check whether the program has a newer version.
If no compatible driver exists, you have two options: stop using that hardware or software, or leave memory integrity off. Leaving it off is a trade-off, not a fix, because the protection is then absent.
Enable memory integrity with Group Policy
On managed PCs, use the Group Policy Editor:
- Run
gpedit.mscto edit a policy, or create a new Group Policy Object. - Go to Computer Configuration > Administrative Templates > System > Device Guard.
- Double-click Turn on Virtualization Based Security and select Enabled.
- Under Virtualization Based Protection of Code Integrity, choose Enabled without UEFI lock.
- Select OK.
Microsoft advises choosing Enabled with UEFI lock only if you want to stop memory integrity from being disabled remotely or by a policy update. After that, turning it off requires access to the UEFI menu to disable Secure Boot. On a domain-joined computer, restart or run gpupdate /force in an elevated Command Prompt to apply the policy. For Intune, use the Hypervisor Enforced Code Integrity setting under Virtualization Based Technology in the settings catalog.
Enable memory integrity with the registry
Microsoft documents these registry commands as the recommended settings, without UEFI lock. Run them in an elevated Command Prompt, then restart:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "RequirePlatformSecurityFeatures" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "Locked" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 1 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Locked" /t REG_DWORD /d 0 /f
RequirePlatformSecurityFeatures set to 1 requires Secure Boot only. Set to 3, it requires Secure Boot and DMA protection, and then VBS and memory integrity turn on only for computers with IOMMUs. Microsoft recommends the value 1 in most situations. Do not set Mandatory to 1 unless you have tested the machine: in that mode the system refuses to boot if the hypervisor, the Secure Kernel or a dependent module fails to load.
All drivers must be compatible before you do this at scale. Microsoft recommends trying the change on a group of test computers first.
Recover from a boot failure after enabling it
If the system shows a critical error at boot or stays unstable, recover through the Windows Recovery Environment (Windows RE):
- Disable any policy that turns on VBS and memory integrity, such as Group Policy.
- Boot into Windows RE on the affected computer.
- Log in and run this command to turn memory integrity off:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f - Restart the device.
If you enabled memory integrity with a UEFI lock, you must disable Secure Boot before these steps work.
If it still won't enable
Work through the causes in order. Confirm Secure Boot, TPM 2.0 and the CPU virtualization extension are all on in firmware. Update the BIOS or UEFI firmware, since VBS also depends on firmware behavior such as SMM protection and correct UEFI memory reporting. Update chipset, storage, graphics and network drivers from the vendor. Then check SecurityServicesRunning again with the PowerShell command above, because that value is the real result, not the toggle.
Frequently asked questions
- Does memory integrity slow down my PC?
- It can, depending on the processor. 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), which has a bigger performance impact. Microsoft does not publish a single percentage, so measure your own workload if it matters.
- Is memory integrity the same as HVCI?
- Yes. Memory integrity is the Windows Security name for hypervisor-protected code integrity (HVCI), also called hypervisor enforced code integrity. It started life as part of Device Guard, which is why the registry and Group Policy settings still use the names Device Guard and HypervisorEnforcedCodeIntegrity.
- Can I turn memory integrity on in a virtual machine?
- Yes, with conditions. For Hyper-V, the VM must be Generation 2 and run at least Windows Server 2016 or Windows 10, and the host must run at least Windows Server 2016 or Windows 10 version 1607. The steps inside the VM are the same as on a physical PC.
- What if the PC will not boot after I enabled it?
- Boot into the Windows Recovery Environment, open a command prompt, and set the Enabled value under the HypervisorEnforcedCodeIntegrity registry key to 0, then restart. If you enabled it with a UEFI lock, you also need to disable Secure Boot to finish the recovery. The exact command is in the section on recovering from a boot failure.