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
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.
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 DWordDisable
# 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 SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Enumeration policyStratégie d’énumérationDmaGuardEnumerationPolicy_Options | Drop-down listenum | DeviceEnumerationPolicy | REG_DWORD | Default choice (UI): #1
|