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 (Security)BilgisayarHKLM\Software\Policies\Microsoft\Windows\EventLog\Security
- İlke Kimliği
- Channel_Log_Retention_2
- 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 › Güvenlik
Kayıt defteri
Retention
REG_SZBilgisayarHKLM\Software\Policies\Microsoft\Windows\EventLog\Security Geçerli anahtar
- 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\Security] ; 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\Security" /v "Retention" /t REG_SZ /d 1 /f :: Devre Dışı reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\Security" /v "Retention" /t REG_SZ /d 0 /f
PowerShell
# Ortak: anahtarı oluştur New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Force | Out-Null # Seçenekler (yalnızca birini kullanın) # Etkin New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Name 'Retention' -PropertyType String -Value '1' -Force | Out-Null # Devre Dışı New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security' -Name 'Retention' -PropertyType String -Value '0' -Force | Out-Null