Habilitar o Registro de Eventos Protegidos: valor do Registro EnableProtectedEventLogging e mais 1ComputadorHKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging

ID da política
EnableProtectedEventLogging
Escopo
Configuração do Computador
Compatível com
Pelo menos Windows Server 2016, Windows 10
Fonte
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (versão 1.0)
Categoria
Componentes do Windows › Registro de Eventos

Registro

EnableProtectedEventLogging

REG_DWORDComputador
Valor habilitado
1
Valor desabilitado
0
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opções (use apenas uma)
; Habilitada
"EnableProtectedEventLogging"=dword:00000001
; Desabilitada
"EnableProtectedEventLogging"=dword:00000000
CMD
:: Opções (use apenas uma)

:: Habilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EnableProtectedEventLogging" /t REG_DWORD /d 1 /f
:: Desabilitada
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EnableProtectedEventLogging" /t REG_DWORD /d 0 /f
PowerShell
# Comum: criar a chave
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Force | Out-Null

# Opções (use apenas uma)
# Habilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Name 'EnableProtectedEventLogging' -PropertyType DWord -Value 1 -Force | Out-Null
# Desabilitada
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Name 'EnableProtectedEventLogging' -PropertyType DWord -Value 0 -Force | Out-Null

EncryptionCertificate

REG_MULTI_SZComputador
Valor habilitado
Depende do valor da opção
Elemento
-
Tipo de valor
REG_MULTI_SZ
Obrigatório
true
Aplicar com .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados
; Dados hex(2) e hex(7) devem ser escritos em hexadecimal (UTF-16LE)
"EncryptionCertificate"=hex(7):<inserir valor>
CMD
:: Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados

reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EncryptionCertificate" /t REG_MULTI_SZ /d "<inserir valor>" /f
PowerShell
# Nomes e tipos de valor seguem o ADMX. Substitua <inserir valor> abaixo pelos seus próprios dados

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 '<inserir valor>' -Force | Out-Null