Volles Protokoll automatisch sichern: Registrierungswert AutoBackupLogFiles (Setup)ComputerHKLM\Software\Policies\Microsoft\Windows\EventLog\Setup

Richtlinien-ID
Channel_Log_AutoBackup_3
Bereich
Computerkonfiguration
Unterstützt unter
Mindestens Windows Vista
Quelle
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (Version 1.0)
Kategorie
Windows-Komponenten › Ereignisprotokolldienst › Setup

Registrierung

AutoBackupLogFiles

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

[HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\EventLog\Setup]

; Optionen (nur eine verwenden)
; Aktiviert
"AutoBackupLogFiles"="1"
; Deaktiviert
"AutoBackupLogFiles"="0"
CMD
:: Optionen (nur eine verwenden)

:: Aktiviert
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup" /v "AutoBackupLogFiles" /t REG_SZ /d 1 /f
:: Deaktiviert
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup" /v "AutoBackupLogFiles" /t REG_SZ /d 0 /f
PowerShell
# Gemeinsam: Schlüssel erstellen
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Force | Out-Null

# Optionen (nur eine verwenden)
# Aktiviert
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'AutoBackupLogFiles' -PropertyType String -Value '1' -Force | Out-Null
# Deaktiviert
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'AutoBackupLogFiles' -PropertyType String -Value '0' -Force | Out-Null