Configurar o monitoramento da atividade de arquivos e programas de entrada e de saída: valor do Registro RealtimeScanDirectionComputadorHKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection

ID da política
RealtimeProtection_RealtimeScanDirection
Escopo
Configuração do Computador
Compatível com
Windows Server 2012, Windows 8 ou Windows RT
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Componentes do Windows › Microsoft Defender Antivírus › Proteção em tempo real

Registro

RealtimeScanDirection

-Computador

RealtimeScanDirection

REG_DWORDComputador
Valor habilitado
Depende do valor da opção
Elemento
Configurar o monitoramento da atividade de arquivos e programas de entrada e de saída
Opções
ItemValor armazenado
bidirecional (acesso completo em tempo real)0
examinar somente entrada (desabilitar abertura em tempo real)1
examinar somente saída (desabilitar fechamento em tempo real)2
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Real-Time Protection]

; Opções (use apenas uma)
; bidirecional (acesso completo em tempo real)
"RealtimeScanDirection"=dword:00000000
; examinar somente entrada (desabilitar abertura em tempo real)
"RealtimeScanDirection"=dword:00000001
; examinar somente saída (desabilitar fechamento em tempo real)
"RealtimeScanDirection"=dword:00000002
CMD
:: Opções (use apenas uma)

:: bidirecional (acesso completo em tempo real)
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 0 /f
:: examinar somente entrada (desabilitar abertura em tempo real)
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 1 /f
:: examinar somente saída (desabilitar fechamento em tempo real)
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 2 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Force | Out-Null

# Opções (use apenas uma)
# bidirecional (acesso completo em tempo real)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 0 -Force | Out-Null
# examinar somente entrada (desabilitar abertura em tempo real)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 1 -Force | Out-Null
# examinar somente saída (desabilitar fechamento em tempo real)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 2 -Force | Out-Null