How to Turn Memory Integrity On or Off in Windows 11

Windows Security shows a warning that Memory integrity is off, or a game or driver is asking you to turn it off. Memory integrity is a Windows 11 protection that keeps malicious code out of the core of Windows. Turn it on or off in Windows Security > Device security > Core isolation details, then restart. Keep it on; turn it off only for a specific, documented reason, and only until that reason is fixed.

What Memory Integrity Does

Memory integrity is part of a Windows feature group called core isolation. It uses the same hardware virtualization that runs virtual machines to create an isolated area of memory, and Windows checks drivers and other kernel-level code there before it can run. Microsoft also calls it hypervisor-protected code integrity, or HVCI, and it is one of the virtualization-based security (VBS) features in Windows 11.

In plain terms, it makes it much harder for malware to load a fake or tampered driver and take over your PC at the deepest level. That is why Windows Security flags it when it is off. Microsoft notes that on Windows 11 version 22H2 and later, Windows Security shows a warning when memory integrity is turned off, and you can dismiss that warning if you choose.

A few related points are worth knowing:

  • Microsoft says memory integrity is on by default for clean installs of Windows 11 on compatible hardware and on Secured-core PCs. A PC upgraded from Windows 10 may not have it on.
  • Turning it on also turns on the Microsoft vulnerable driver blocklist, which stops known risky drivers from loading.
  • Kernel-mode Hardware-enforced Stack Protection, a newer protection on supported processors, needs memory integrity turned on first.
  • In a September 2026 Windows IT Pro Blog post, Microsoft said that beginning in October 2026, Windows quality updates start turning memory integrity on for eligible devices. Devices where it has been turned off are not changed, and you can still set it yourself.

Check Whether Memory Integrity Is On

The quick check is the switch itself:

  1. Select Start, type Windows Security and open the app.
  2. Select Device security.
  3. Under Core isolation, select Core isolation details.
  4. Look at the Memory integrity switch. On means it is running (or will run after a restart if you just changed it).
Memory integrity switch on the Core isolation details page in Windows Security
The Memory integrity switch lives under Core isolation details. (Recreated interface)

For a second opinion, Microsoft documents two built-in tools:

  • System Information. Press Windows key + R, type msinfo32 and press Enter. Microsoft suggests running it as an administrator. On the System Summary page, scroll to the bottom to the Virtualization-based security entries, which show whether VBS is running and which of its services are active.
  • PowerShell. Open PowerShell as an administrator and run Get-CimInstance -ClassName Win32_DeviceGuard -Namespace root\Microsoft\Windows\DeviceGuard. In the results, VirtualizationBasedSecurityStatus of 2 means VBS is enabled and running, and a 2 in SecurityServicesRunning means memory integrity is running.
PowerShell output of Win32_DeviceGuard showing VBS status values
A 2 in SecurityServicesRunning means Memory integrity is running. (Recreated interface)

Turn Memory Integrity On

Before you start, make sure you can sign in with an administrator account, and save any open work because a restart is required. Memory integrity also needs hardware virtualization turned on in your PC’s UEFI or BIOS. If the switch will not move or the page says virtualization is off, follow the steps to turn on hardware virtualization in Windows 11 first.

  1. Open Windows Security from the Start menu. You can also go to Start > Settings > Privacy & security > Windows Security and select Open Windows Security.
  2. Select Device security.
  3. Select Core isolation details.
  4. Turn Memory integrity on.
  5. If User Account Control asks for permission, select Yes.
  6. Restart the PC when Windows asks. The protection does not take effect until you do.

After the restart, go back to Core isolation details and confirm the switch is still on. If Windows instead shows a message about incompatible drivers, the next section explains what to do.

Microsoft’s memory integrity documentation for IT pros warns that some apps and drivers may not work with it, and in rare cases a driver problem can stop Windows from starting. That risk is low on most modern PCs, but it is the reason to save your work and know the recovery steps covered further down.

If Windows Reports an Incompatible Driver

The most common message here is that memory integrity is off because of incompatible drivers, with a link to review them. Microsoft explains that Windows keeps the switch off in this case because turning it on would block those drivers, which could stop a device or app from working.

Windows Security message saying Memory integrity is off because of incompatible drivers
Windows keeps Memory integrity off when a driver would be blocked. (Recreated interface)
  1. On the Core isolation details page, look for a link to review the incompatible drivers and open it. Note each driver’s name and, if shown, its provider, so you can tell which device or app it belongs to.
  2. Check Start > Settings > Windows Update for updates, including optional driver updates.
  3. Visit the device or PC maker’s support site and install their updated driver for that device. Microsoft points to Windows Update and the manufacturer as the two places to look.
  4. Restart, then try the memory integrity switch again.
  5. If no compatible driver exists, Microsoft says you may need to remove the device or uninstall the app that uses the driver, or ask the manufacturer whether a fix is planned.

Microsoft is specific on one point: it does not recommend deleting drivers to force this setting back on. Removing a driver by hand can break hardware you still use. Microsoft’s page on why incompatible drivers prevent memory integrity says so directly. For finding a driver’s version and provider, see how to check drivers on Windows 11.

Here is how that plays out. Omar sees the incompatible driver message and the list shows a driver from an old USB audio adapter he no longer uses. He unplugs it and uninstalls the adapter’s software from Settings > Apps > Installed apps, restarts, and memory integrity turns on. If the driver had belonged to a printer he still needed, the right move would have been an updated driver from the printer maker instead.

Turn Memory Integrity Off

Turning memory integrity off removes a real layer of protection, so treat it as a temporary step. Microsoft describes it as an option when a driver you need will not load and no compatible update solves the problem. Some apps and games may also tell you to turn it off; check the app maker’s own support page for a current requirement, and look for an updated version first.

Before you continue, know what Microsoft warns about. On a Secured-core PC, turning memory integrity off removes the Secured-core state, and Microsoft notes the effect on the driver’s functionality can range from negligible to severe.

  1. Open Windows Security and select Device security.
  2. Select Core isolation details.
  3. Turn Memory integrity off.
  4. Select Yes if User Account Control asks.
  5. Restart the PC.

Once the driver or app is updated, or you stop using it, go back and turn memory integrity on again. Setting a reminder helps, because Windows Security’s warning can be dismissed and is easy to forget.

Does Memory Integrity Slow Your PC or Games?

It can, and how much depends mostly on your processor. Microsoft says memory integrity works best on Intel Kaby Lake and newer processors with a feature called MBEC, and on AMD Zen 2 and newer processors with a similar feature called GMET. Older processors use an emulation method called Restricted User Mode, which Microsoft says has a bigger performance impact.

Microsoft does not publish gaming frame-rate figures for memory integrity on the pages checked for this article, and it does not recommend turning it off for gaming. If a game runs poorly, update Windows and your graphics driver first; updating your graphics driver in Windows 11 covers the safe routes. On a modern processor, the protection is usually worth keeping.

SituationWhat to do
Windows Security says memory integrity is off and no driver is listedTurn it on and restart
An incompatible driver is listedUpdate the driver from Windows Update or the maker; remove the device or app only if no update exists
An app or game says to turn it offCheck the maker’s support page and update first; turn it off only if required, then turn it back on later
Older processor and noticeable slowdownWeigh the security loss carefully; Microsoft documents a larger impact on older CPUs

If the Switch Is Missing, Greyed Out or Turns Itself Off

  • Virtualization is off. Memory integrity needs hardware virtualization enabled in UEFI or BIOS. Microsoft also lists Secure Boot among the hardware requirements for virtualization-based security; see how to enable Secure Boot in Windows 11.
  • Your organization manages it. On a work or school PC, an administrator can control memory integrity through Intune, Group Policy or the registry, and the switch may be locked or show that it is managed. Ask your IT team rather than changing it.
  • The feature list differs. Microsoft says core isolation features vary by Windows version and hardware, so some options may not appear on every PC.
  • A restart is pending. The switch can show a restart message until you restart.
  • It turned itself off. On PCs where Windows turned memory integrity on automatically, Microsoft’s hardware guidance says Windows can turn it off again if the PC crashes during boot in the first few starts, which can happen when it blocks an incompatible boot-critical driver. Check for an incompatible driver as described above. Blocked drivers are logged in Event Viewer under Applications and Services Logs > Microsoft > Windows > CodeIntegrity > Operational.

If Windows Will Not Start After Turning It On

This is rare, but Microsoft documents a recovery path. Microsoft’s fix starts in the Windows Recovery Environment (Windows RE), which Windows may open on its own after several failed starts.

On a work or school PC where memory integrity is set by Group Policy or another management tool, the policy has to be turned off first, or the setting comes back; ask your IT team.

  1. In Windows RE, look for Troubleshoot > Advanced options > Command Prompt. If the drive is encrypted, you may be asked for a BitLocker recovery key.
  2. Type this command and press Enter: reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v "Enabled" /t REG_DWORD /d 0 /f
  3. Close Command Prompt and restart the PC.
  4. Once you are back in, find and update the driver that caused the problem before turning memory integrity on again.

Microsoft notes that if memory integrity was turned on with a UEFI lock, which is usually something an administrator sets, Secure Boot must be turned off before the setting can be reversed.

Questions About Memory Integrity

Is memory integrity the same as core isolation?

Not quite. Core isolation is the group of protections on the Device security page; memory integrity is the main switch inside it.

Do I need to restart after changing it?

Yes. Turning memory integrity on or off only takes effect after a restart.

Will Windows Update turn memory integrity on by itself?

It may. Microsoft said quality updates beginning in October 2026 start enabling it on eligible devices, but they do not change devices where it was turned off.

Can I turn it back on after turning it off?

Yes. Use the same switch and restart. If an incompatible driver appears, deal with that driver first.

Is it safe to leave memory integrity off?

It is less safe. Your PC still has Microsoft Defender and other protections, but kernel-level attacks become easier. Turn it back on as soon as the driver or app that needed it off is fixed.

Your next step: open Core isolation details now, check the switch, and if a driver is listed, start with Windows Update.