ENGINEERING

KB5132061: Windows might turn on memory integrity by itself. Find the PCs it could affect

Windows 11’s November update, KB5132061, can turn on memory integrity by itself. It first shipped in the October 28 preview, KB5127936, where Microsoft wrote that “Supported PCs may now have memory integrity (HVCI) enabled during updates … while respecting existing user or IT administrator choices.”

Memory integrity is the Core isolation function in Windows Security. With it turned on, Windows only lets trusted drivers and kernel code run. Most of the coverage so far is about gaming performance, but I’d worry more about drivers. Microsoft’s own documentation says some drivers don’t work with it, which “can cause devices or software to malfunction and in rare cases may result in a boot failure.” And BSODs are never fun.

Which PCs get it

Not every PC gets it turned on automatically. According to Microsoft’s IT Pro blog post, Windows first checks whether the PC is ready (hardware, driver compatibility and performance). Memory integrity runs on top of virtualization-based security (VBS), so if VBS is off, the update turns that on too. If you already turned memory integrity off, Windows won’t touch it.

Microsoft’s memory integrity enablement page has the minimum hardware:

ComponentMinimum
ProcessorIntel 8th generation or later, AMD Zen 2 or later, Qualcomm Snapdragon 8180 or later
RAM8 GB (x64)
Storage64 GB SSD
DriversMemory integrity-compatible drivers installed
BIOSVirtualization turned on

Windows also checks for MBEC/GMET, a CPU feature that keeps memory integrity from slowing the PC down. Unfortunately, old CPUs don’t have it.

The Microsoft page still says Windows only turns memory integrity on automatically for clean/fresh installs. The October update changes this! Now, upgraded PCs can also get this change.

So, the PCs to look at are the ones where memory integrity has never been turned on or off, and check the hardware against Microsoft’s list.

What I saw in my lab

I checked my own desktop first (Windows 11 Pro 26H2, October build). Memory integrity was already on. WasEnabledBy was 2, so I can still flip it off myself in Windows Security. If that value isn’t there, Windows Security says the setting is “managed by your administrator” instead.

Weird one: Win32_DeviceGuard doesn’t show Secure Boot on my desktop, and memory integrity runs just fine.

RFF job result on my desktop: Memory integrity RUNNING, Enabled=1, WasEnabledBy=2, no policy, build 26300.9711

Next I tried a lab VM (Windows 11 25H2, about 3.5 GB of RAM) where memory integrity had never been touched. I pushed KB5132061 to it with an RFF job and let it reboot. It came back on 26200.9974, and memory integrity was still off.

That’s what Microsoft’s list says should happen. The VM has less than 8 GB of RAM, and its virtual CPU doesn’t report MBEC/GMET (AvailableSecurityProperties came back 1, 2, 3 and 5 - MBEC would be 7).

RFF job result on the lab VM after KB5132061: Memory integrity NOT DECIDED, never set, no policy, build 26200.9974

Microsoft doesn’t say how long Windows takes to decide a PC is ready, or which update actually flips it - just “may” and “during updates.” So I’d check again after every Patch Tuesday, not just this one.

Check one machine

In an elevated PowerShell:

$dg = Get-CimInstance -Namespace root\Microsoft\Windows\DeviceGuard -ClassName Win32_DeviceGuard
$dg.SecurityServicesRunning              # contains 2 = memory integrity is running
$dg.VirtualizationBasedSecurityStatus    # 0 off, 1 enabled but not running, 2 running
$dg.AvailableSecurityProperties          # 1 hypervisor, 2 Secure Boot, 3 DMA protection, 7 MBEC/GMET
Get-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity'
Get-ItemProperty 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard' -ErrorAction SilentlyContinue

Enabled under the Scenarios key is the setting: 1 is on, 0 is off, and no value means it was never set. A HypervisorEnforcedCodeIntegrity value under the Policies key means Group Policy set it (0 off, 1 on with UEFI lock, 2 on without lock).

What to do

  1. Find the PCs where memory integrity was never set and the hardware qualifies.
  2. Check those for incompatible drivers before an update turns it on. Windows Security > Device security > Core isolation details lists the drivers that block it.
  3. Decide for your fleet and set it by Group Policy, so an update doesn’t decide for you: Computer Configuration > Administrative Templates > System > Device Guard > Turn On Virtualization Based Security, then “Virtualization Based Protection of Code Integrity” (Enabled with or without UEFI lock, or Disabled).
  4. If a PC won’t boot after it turns on, Microsoft’s troubleshooting steps show how to turn it off from Windows RE. Remove the policy first, or it turns right back on.

Doing it with RFF

The RFF Script Library has a memory integrity check for Windows. It reads Win32_DeviceGuard, the Scenarios key and the Group Policy and Intune settings. Each PC comes back RUNNING, OFF BY POLICY, OFF BY CHOICE, NOT RUNNING, NOT DECIDED or NOT CAPABLE. NOT RUNNING means it’s set to on but isn’t running, so it needs a restart or something blocked it. NOT DECIDED is the group an update may turn on. Both screenshots above are that check, run through RFF.

RFF is free for your first 100 endpoints: getrff.com.

Sources

One email per new post, nothing else. Unsubscribe in one click. Or use the RSS feed.

Comments

Comments use GitHub Discussions, so you'll need a GitHub account to post. Corrections are especially welcome.