Habilitar el registro de eventos protegido: valor del Registro EnableProtectedEventLogging y 1 másEquipoHKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging

Id. de directiva
EnableProtectedEventLogging
Ámbito
Configuración del equipo
Compatible con
Se requiere al menos Windows Server 2016 o Windows 10
Origen
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versión 1.0)
Categoría
Componentes de Windows › Registro de eventos

Registro

EnableProtectedEventLogging

REG_DWORDEquipo
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\ProtectedEventLogging]

; Opciones (usar solo una)
; Habilitada
"EnableProtectedEventLogging"=dword:00000001
; Deshabilitada
"EnableProtectedEventLogging"=dword:00000000
CMD
:: Opciones (usar solo una)

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

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

EncryptionCertificate

REG_MULTI_SZEquipo
Valor al habilitar
Depende del valor de la opción
Elemento
-
Tipo de valor
REG_MULTI_SZ
Obligatorio
true
Aplicar con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Los nombres y tipos de valor siguen el ADMX. Reemplace <introducir valor> más abajo con sus propios datos
; Los datos hex(2) y hex(7) deben escribirse en hexadecimal (UTF-16LE)
"EncryptionCertificate"=hex(7):<introducir valor>
CMD
:: Los nombres y tipos de valor siguen el ADMX. Reemplace <introducir valor> más abajo con sus propios datos

reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EncryptionCertificate" /t REG_MULTI_SZ /d "<introducir valor>" /f
PowerShell
# Los nombres y tipos de valor siguen el ADMX. Reemplace <introducir valor> más abajo con sus propios datos

New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Name 'EncryptionCertificate' -PropertyType MultiString -Value '<introducir valor>' -Force | Out-Null