Controlla comportamento Registro eventi quando il file di registro raggiunge la dimensione massima: valore del Registro di sistema Retention (Setup)ComputerHKLM\Software\Policies\Microsoft\Windows\EventLog\Setup
- ID criterio
- Channel_Log_Retention_3
- Ambito
- Configurazione computer
- Supportato in
- Almeno Windows Vista
- Origine
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
- Categoria
- Componenti di Windows › Servizio Registro eventi › Programma di installazione
Registro
Retention
REG_SZComputerHKLM\Software\Policies\Microsoft\Windows\EventLog\Setup Chiave corrente
- Valore abilitato
- 1
- Valore disabilitato
- 0
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\EventLog\Setup] ; Opzioni (usarne solo una) ; Abilitato "Retention"="1" ; Disabilitato "Retention"="0"
CMD
:: Opzioni (usarne solo una) :: Abilitato reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup" /v "Retention" /t REG_SZ /d 1 /f :: Disabilitato reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup" /v "Retention" /t REG_SZ /d 0 /f
PowerShell
# Comune: crea la chiave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Force | Out-Null # Opzioni (usarne solo una) # Abilitato New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'Retention' -PropertyType String -Value '1' -Force | Out-Null # Disabilitato New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'Retention' -PropertyType String -Value '0' -Force | Out-Null