Bewaking configureren voor inkomende en uitgaande activiteit van bestanden en programma's: registerwaarde RealtimeScanDirectionComputerHKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection

Beleids-ID
RealtimeProtection_RealtimeScanDirection
Bereik
Computerconfiguratie
Ondersteund op
Minimaal Windows Server 2012, Windows 8 of Windows RT
Bron
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versie 1.0)
Categorie
Windows-onderdelen › Microsoft Defender Antivirus › Realtime-beveiliging

Register

RealtimeScanDirection

-Computer

RealtimeScanDirection

REG_DWORDComputer
Waarde bij ingeschakeld
Afhankelijk van de waarde van de optie
Element
Bewaking configureren voor inkomende en uitgaande activiteit van bestanden en programma's
Opties
ItemOpgeslagen waarde
bi-directioneel (volledig-aan-toegang)0
alleen inkomend scannen (uitschakelen bij openen)1
alleen uitgaand scannen (uitschakelen bij sluiten)2
Toepassen met .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opties (gebruik er maar één)
; bi-directioneel (volledig-aan-toegang)
"RealtimeScanDirection"=dword:00000000
; alleen inkomend scannen (uitschakelen bij openen)
"RealtimeScanDirection"=dword:00000001
; alleen uitgaand scannen (uitschakelen bij sluiten)
"RealtimeScanDirection"=dword:00000002
CMD
:: Opties (gebruik er maar één)

:: bi-directioneel (volledig-aan-toegang)
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 0 /f
:: alleen inkomend scannen (uitschakelen bij openen)
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 1 /f
:: alleen uitgaand scannen (uitschakelen bij sluiten)
reg add "HKLM\Software\Policies\Microsoft\Windows Defender\Real-Time Protection" /v "RealtimeScanDirection" /t REG_DWORD /d 2 /f
PowerShell
# Algemeen: sleutel maken
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Force | Out-Null

# Opties (gebruik er maar één)
# bi-directioneel (volledig-aan-toegang)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 0 -Force | Out-Null
# alleen inkomend scannen (uitschakelen bij openen)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 1 -Force | Out-Null
# alleen uitgaand scannen (uitschakelen bij sluiten)
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows Defender\Real-Time Protection' -Name 'RealtimeScanDirection' -PropertyType DWord -Value 2 -Force | Out-Null