Controlar el comportamiento del registro de eventos cuando el registro alcanza su tamaño máximo.: valor del Registro Retention (System)EquipoHKLM\Software\Policies\Microsoft\Windows\EventLog\System
- Id. de directiva
- Channel_Log_Retention_4
- Ámbito
- Configuración del equipo
- Compatible con
- Al menos Windows Vista
- Origen
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versión 1.0)
- Categoría
- Componentes de Windows › Servicio Registro de eventos › Sistema
Registro
Retention
REG_SZEquipo- Valor al habilitar
- 1
- Valor al deshabilitar
- 0
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\EventLog\System] ; Opciones (usar solo una) ; Habilitada "Retention"="1" ; Deshabilitada "Retention"="0"
CMD
:: Opciones (usar solo una) :: Habilitada reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\System" /v "Retention" /t REG_SZ /d 1 /f :: Deshabilitada reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\System" /v "Retention" /t REG_SZ /d 0 /f
PowerShell
# Común: crear la clave New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Force | Out-Null # Opciones (usar solo una) # Habilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'Retention' -PropertyType String -Value '1' -Force | Out-Null # Deshabilitada New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\System' -Name 'Retention' -PropertyType String -Value '0' -Force | Out-Null