Windows Defender Firewall: Protokollierung zulassen: Registrierungswert LogDroppedPackets und 3 weitere (StandardProfile\Logging)ComputerHKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging

Richtlinien-ID
WF_Logging_Name_2
Bereich
Computerkonfiguration
Unterstützt unter
Mindestens Windows XP Professional mit SP 2
Quelle
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (Version 1.0)
Kategorie
Netzwerk › Netzwerkverbindungen › Windows Defender Firewall › Standardprofil

Registrierung

LogDroppedPackets

REG_SZComputer
Wert bei Deaktivierung
0
Mit .reg · CMD · PowerShell anwenden
Deaktiviert
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging]
"LogDroppedPackets"="0"
CMD · Deaktiviert
reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging" /v "LogDroppedPackets" /t REG_SZ /d 0 /f
PowerShell · Deaktiviert
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Name 'LogDroppedPackets' -PropertyType String -Value '0' -Force | Out-Null

LogSuccessfulConnections

REG_SZComputer
Wert bei Deaktivierung
0
Mit .reg · CMD · PowerShell anwenden
Deaktiviert
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging]
"LogSuccessfulConnections"="0"
CMD · Deaktiviert
reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging" /v "LogSuccessfulConnections" /t REG_SZ /d 0 /f
PowerShell · Deaktiviert
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Name 'LogSuccessfulConnections' -PropertyType String -Value '0' -Force | Out-Null

LogDroppedPackets

REG_DWORDComputer
Angekreuzt
1
Nicht angekreuzt
0
Element
Verworfene Pakete protokollieren
Werttyp
REG_DWORD
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging]

; Optionen (nur eine verwenden)
; Angekreuzt
"LogDroppedPackets"=dword:00000001
; Nicht angekreuzt
"LogDroppedPackets"=dword:00000000
CMD
:: Optionen (nur eine verwenden)

:: Angekreuzt
reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging" /v "LogDroppedPackets" /t REG_DWORD /d 1 /f
:: Nicht angekreuzt
reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging" /v "LogDroppedPackets" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Force | Out-Null

# Optionen (nur eine verwenden)
# Angekreuzt
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Name 'LogDroppedPackets' -PropertyType DWord -Value 1 -Force | Out-Null
# Nicht angekreuzt
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Name 'LogDroppedPackets' -PropertyType DWord -Value 0 -Force | Out-Null

LogSuccessfulConnections

REG_DWORDComputer
Angekreuzt
1
Nicht angekreuzt
0
Element
Erfolgreiche Verbindungen protokollieren
Werttyp
REG_DWORD
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging]

; Optionen (nur eine verwenden)
; Angekreuzt
"LogSuccessfulConnections"=dword:00000001
; Nicht angekreuzt
"LogSuccessfulConnections"=dword:00000000
CMD
:: Optionen (nur eine verwenden)

:: Angekreuzt
reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging" /v "LogSuccessfulConnections" /t REG_DWORD /d 1 /f
:: Nicht angekreuzt
reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging" /v "LogSuccessfulConnections" /t REG_DWORD /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Force | Out-Null

# Optionen (nur eine verwenden)
# Angekreuzt
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Name 'LogSuccessfulConnections' -PropertyType DWord -Value 1 -Force | Out-Null
# Nicht angekreuzt
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Name 'LogSuccessfulConnections' -PropertyType DWord -Value 0 -Force | Out-Null

LogFilePath

REG_SZComputer
Wert bei Aktivierung
Hängt vom Wert der Option ab
Element
Protokolldateipfad und -name:
Werttyp
REG_SZ
Erforderlich
true
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging]

; Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten
"LogFilePath"="<Wert eingeben>"
CMD
:: Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten

reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging" /v "LogFilePath" /t REG_SZ /d "<Wert eingeben>" /f
PowerShell
# Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten

New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Name 'LogFilePath' -PropertyType String -Value '<Wert eingeben>' -Force | Out-Null

LogFileSize

REG_DWORDComputer
Wert bei Aktivierung
Hängt vom Wert der Option ab
Element
Größenlimit (KB):
Werttyp
REG_DWORD
Erforderlich
true
Mindestwert
128
Höchstwert
32767
Mit .reg · CMD · PowerShell anwenden
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging]

; Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten
"LogFileSize"=dword:<Wert eingeben>
CMD
:: Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten

reg add "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging" /v "LogFileSize" /t REG_DWORD /d "<Wert eingeben>" /f
PowerShell
# Wertnamen und Typen folgen der ADMX. Ersetzen Sie <Wert eingeben> unten durch Ihre eigenen Daten

New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\Logging' -Name 'LogFileSize' -PropertyType DWord -Value '<Wert eingeben>' -Force | Out-Null