Open in the explorer

Enumeration policy for external devices incompatible with Kernel DMA Protection

Stratégie d'énumération pour les appareils externes incompatibles avec la protection DMA du noyau

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Kernel DMA Protection FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Protection DMA du noyau
Supported on
At least Windows Server 2016, Windows 10 FR: Au moins Windows Server 2016, Windows 10
ADMX file
DmaGuard.admx
Internal name
DmaGuard/DmaGuardEnumerationPolicy

Explanation

Enumeration policy for external DMA-capable devices incompatible with DMA remapping. This policy only takes effect when Kernel DMA Protection is enabled and supported by the system. Note: this policy does not apply to 1394, PCMCIA or ExpressCard devices.

French text from Windows 11 26H2

Stratégie d'énumération pour les appareils externes compatibles DMA incompatibles avec le remappage DMA. Cette stratégie n'entre en vigueur que lorsque la protection DMA du noyau est activée et prise en charge par le système. Remarque : cette stratégie ne s'applique pas aux appareils 1394, PCMCIA ou ExpressCard.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Kernel DMA Protection
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: DmaGuard/DmaGuardEnumerationPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Enumeration policy
# Possible options:
#   Block all = 0
#   Only while logged in (default) = 1
#   Allow all = 2
Set-ItemProperty -Path $k -Name 'DeviceEnumerationPolicy' -Value 1 -Type DWord

Disable

# Disable: DmaGuard/DmaGuardEnumerationPolicy
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": DmaGuard/DmaGuardEnumerationPolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection'
Remove-ItemProperty -Path $k -Name 'DeviceEnumerationPolicy' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Enumeration policyStratégie d’énumérationDmaGuardEnumerationPolicy_OptionsDrop-down listenumDeviceEnumerationPolicyREG_DWORD
Default choice (UI): #1
LabelValue
Block allREG_DWORD = 0
Only while logged in (default)REG_DWORD = 1
Allow allREG_DWORD = 2

Availability

Windows 10

✓ 22H2✓ 21H2✓ 21H1✓ 20H2✓ 2004✓ 1909✓ 1903✓ 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server