Abilita registrazione eventi protetti: valore del Registro di sistema EnableProtectedEventLogging e altri 1ComputerHKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging

ID criterio
EnableProtectedEventLogging
Ambito
Configurazione computer
Supportato in
Almeno Windows Server 2016 o Windows 10
Origine
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versione 1.0)
Categoria
Componenti di Windows › Registrazione eventi

Registro

EnableProtectedEventLogging

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

; Opzioni (usarne solo una)
; Abilitato
"EnableProtectedEventLogging"=dword:00000001
; Disabilitato
"EnableProtectedEventLogging"=dword:00000000
CMD
:: Opzioni (usarne solo una)

:: Abilitato
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EnableProtectedEventLogging" /t REG_DWORD /d 1 /f
:: Disabilitato
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EnableProtectedEventLogging" /t REG_DWORD /d 0 /f
PowerShell
# Comune: crea la chiave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Force | Out-Null

# Opzioni (usarne solo una)
# Abilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Name 'EnableProtectedEventLogging' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabilitato
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Name 'EnableProtectedEventLogging' -PropertyType DWord -Value 0 -Force | Out-Null

EncryptionCertificate

REG_MULTI_SZComputer
Valore abilitato
Dipende dal valore dell'opzione
Elemento
-
Tipo di valore
REG_MULTI_SZ
Obbligatorio
true
Applica con .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati
; I dati hex(2) e hex(7) vanno scritti in esadecimale (UTF-16LE)
"EncryptionCertificate"=hex(7):<inserisci valore>
CMD
:: Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EncryptionCertificate" /t REG_MULTI_SZ /d "<inserisci valore>" /f
PowerShell
# Nomi e tipi di valore seguono l'ADMX. Sostituisci <inserisci valore> qui sotto con i tuoi dati

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 '<inserisci valore>' -Force | Out-Null