Günlük dosyası boyut üst sınırına ulaştığında Olay Günlüğü'nün davranışını denetle: kayıt defteri değeri Retention (System)BilgisayarHKLM\Software\Policies\Microsoft\Windows\EventLog\System

İlke Kimliği
Channel_Log_Retention_4
Kapsam
Bilgisayar Yapılandırması
Desteklenen işletim sistemleri
En azından Windows Vista
Kaynak
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (sürüm 1.0)
Kategori
Windows Bileşenleri › Olay Günlüğü Hizmeti › Sistem

Kayıt defteri

Retention

REG_SZBilgisayar
Etkin değeri
1
Devre dışı değeri
0
.reg · CMD · PowerShell ile uygula
.reg
Windows Registry Editor Version 5.00

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

; Seçenekler (yalnızca birini kullanın)
; Etkin
"Retention"="1"
; Devre Dışı
"Retention"="0"
CMD
:: Seçenekler (yalnızca birini kullanın)

:: Etkin
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\System" /v "Retention" /t REG_SZ /d 1 /f
:: Devre Dışı
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\System" /v "Retention" /t REG_SZ /d 0 /f
PowerShell
# Ortak: anahtarı oluştur
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Force | Out-Null

# Seçenekler (yalnızca birini kullanın)
# Etkin
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'Retention' -PropertyType String -Value '1' -Force | Out-Null
# Devre Dışı
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'Retention' -PropertyType String -Value '0' -Force | Out-Null