Política de enumeração para dispositivos externos incompatível com a Proteção de DMA do Kernel: valor do Registro DeviceEnumerationPolicyComputadorHKLM\Software\Policies\Microsoft\Windows\Kernel DMA Protection
- ID da política
- DmaGuardEnumerationPolicy
- Escopo
- Configuração do Computador
- Compatível com
- Pelo menos Windows Server 2016, Windows 10
- Fonte
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
- Categoria
- Sistema › Proteção de DMA de Kernel
Registro
DeviceEnumerationPolicy
REG_DWORDComputador- Valor habilitado
- Depende do valor da opção
- Elemento
- Política de enumeração
| Item | Valor armazenado |
|---|---|
| Bloquear tudo | 0 |
| Somente quando conectado (padrão) | 1 |
| Permitir tudo | 2 |
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Kernel DMA Protection] ; Opções (use apenas uma) ; Bloquear tudo "DeviceEnumerationPolicy"=dword:00000000 ; Somente quando conectado (padrão) "DeviceEnumerationPolicy"=dword:00000001 ; Permitir tudo "DeviceEnumerationPolicy"=dword:00000002
CMD
:: Opções (use apenas uma) :: Bloquear tudo reg add "HKLM\Software\Policies\Microsoft\Windows\Kernel DMA Protection" /v "DeviceEnumerationPolicy" /t REG_DWORD /d 0 /f :: Somente quando conectado (padrão) reg add "HKLM\Software\Policies\Microsoft\Windows\Kernel DMA Protection" /v "DeviceEnumerationPolicy" /t REG_DWORD /d 1 /f :: Permitir tudo reg add "HKLM\Software\Policies\Microsoft\Windows\Kernel DMA Protection" /v "DeviceEnumerationPolicy" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection' -Force | Out-Null # Opções (use apenas uma) # Bloquear tudo New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection' -Name 'DeviceEnumerationPolicy' -PropertyType DWord -Value 0 -Force | Out-Null # Somente quando conectado (padrão) New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection' -Name 'DeviceEnumerationPolicy' -PropertyType DWord -Value 1 -Force | Out-Null # Permitir tudo New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\Kernel DMA Protection' -Name 'DeviceEnumerationPolicy' -PropertyType DWord -Value 2 -Force | Out-Null