Enable Protected Event Logging
Supported on: At least Windows Server 2016, Windows 10
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging |
|---|---|
| Value name | EnableProtectedEventLogging |
| Enabled writes | 1 (REG_DWORD) |
| Disabled writes | 0 (REG_DWORD) |
| Option | Value | Type | Allowed values |
|---|---|---|---|
| EncryptionCertificate | EncryptionCertificate | REG_MULTI_SZ | Text |
What it does (vendor explanation)
This policy setting lets you configure Protected Event Logging.
If you enable this policy setting, components that support it will use the certificate you supply to encrypt potentially sensitive event log data before writing it to the event log. Data will be encrypted using the Cryptographic Message Syntax (CMS) standard and the public key you provide. You can use the Unprotect-CmsMessage PowerShell cmdlet to decrypt these encrypted messages, provided that you have access to the private key corresponding to the public key that they were encrypted with.
If you disable or do not configure this policy setting, components will not encrypt event log messages before writing them to the event log.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > Event Logging > Enable Protected Event Logging
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Name 'EnableProtectedEventLogging' -Value 1 -PropertyType DWord -ForceGroup Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".