Configurar supervisión de la actividad de archivos y programas entrantes y salientes: valor del Registro RealtimeScanDirectionEquipoHKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection
- Id. de directiva
- RealtimeProtection_RealtimeScanDirection
- Ámbito
- Configuración del equipo
- Compatible con
- Al menos Windows Server 2012, Windows 8 o Windows RT
- Origen
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versión 1.0)
- Categoría
- Componentes de Windows › Antivirus de Microsoft Defender › Protección en tiempo real
Registro
RealtimeScanDirection
-EquipoRealtimeScanDirection
REG_DWORDEquipo- Valor al habilitar
- Depende del valor de la opción
- Elemento
- Configurar supervisión de la actividad de archivos y programas entrantes y salientes
| Elemento de lista | Valor almacenado |
|---|---|
| bidireccional (completo en el acceso) | 0 |
| explorar solo entrante (deshabilitar al abrir) | 1 |
| explorar solo saliente (deshabilitar al cerrar) | 2 |
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows Defender\Real-Time Protection] ; Opciones (usar solo una) ; bidireccional (completo en el acceso) "RealtimeScanDirection"=dword:00000000 ; explorar solo entrante (deshabilitar al abrir) "RealtimeScanDirection"=dword:00000001 ; explorar solo saliente (deshabilitar al cerrar) "RealtimeScanDirection"=dword:00000002
CMD
:: Opciones (usar solo una) :: bidireccional (completo en el acceso) reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 0 /f :: explorar solo entrante (deshabilitar al abrir) reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 1 /f :: explorar solo saliente (deshabilitar al cerrar) reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 2 /f
PowerShell
# Común: crear la clave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Force | Out-Null # Opciones (usar solo una) # bidireccional (completo en el acceso) New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 0 -Force | Out-Null # explorar solo entrante (deshabilitar al abrir) New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 1 -Force | Out-Null # explorar solo saliente (deshabilitar al cerrar) New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 2 -Force | Out-Null