Controlar el comportamiento del registro de eventos cuando el registro alcanza su tamaño máximo.: valor del Registro Retention (Setup)EquipoHKLM\Software\Policies\Microsoft\Windows\EventLog\Setup

Id. de directiva
Channel_Log_Retention_3
Á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 › Programa de instalación

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\Setup]

; Opciones (usar solo una)
; Habilitada
"Retention"="1"
; Deshabilitada
"Retention"="0"
CMD
:: Opciones (usar solo una)

:: Habilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup" /v "Retention" /t REG_SZ /d 1 /f
:: Deshabilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\Setup" /v "Retention" /t REG_SZ /d 0 /f
PowerShell
# Común: crear la clave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Force | Out-Null

# Opciones (usar solo una)
# Habilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'Retention' -PropertyType String -Value '1' -Force | Out-Null
# Deshabilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Setup' -Name 'Retention' -PropertyType String -Value '0' -Force | Out-Null