Enumeration policy for external devices incompatible with Kernel DMA Protection: registry value DeviceEnumerationPolicyComputerHKLM\Software\Policies\Microsoft\Windows\Kernel DMA Protection

Policy ID
DmaGuardEnumerationPolicy
Scope
Computer Configuration
Supported on
At least Windows Server 2016, Windows 10
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
System › Kernel DMA Protection

Registry

DeviceEnumerationPolicy

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Enumeration policy
Options
ItemStored value
Block all0
Only while logged in (default)1
Allow all2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Kernel DMA Protection]

; Options (use only one)
; Block all
"DeviceEnumerationPolicy"=dword:00000000
; Only while logged in (default)
"DeviceEnumerationPolicy"=dword:00000001
; Allow all
"DeviceEnumerationPolicy"=dword:00000002
CMD
:: Options (use only one)

:: Block all
reg add "HKLM\Software\Policies\Microsoft\Windows\Kernel DMA Protection" /v "DeviceEnumerationPolicy" /t REG_DWORD /d 0 /f
:: Only while logged in (default)
reg add "HKLM\Software\Policies\Microsoft\Windows\Kernel DMA Protection" /v "DeviceEnumerationPolicy" /t REG_DWORD /d 1 /f
:: Allow all
reg add "HKLM\Software\Policies\Microsoft\Windows\Kernel DMA Protection" /v "DeviceEnumerationPolicy" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection' -Force | Out-Null

# Options (use only one)
# Block all
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection' -Name 'DeviceEnumerationPolicy' -PropertyType DWord -Value 0 -Force | Out-Null
# Only while logged in (default)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection' -Name 'DeviceEnumerationPolicy' -PropertyType DWord -Value 1 -Force | Out-Null
# Allow all
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection' -Name 'DeviceEnumerationPolicy' -PropertyType DWord -Value 2 -Force | Out-Null