Włącz chronione rejestrowanie zdarzeń: wartość rejestru EnableProtectedEventLogging i 1 więcejKomputerHKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging

Identyfikator zasady
EnableProtectedEventLogging
Zakres
Konfiguracja komputera
Obsługiwane w systemach
Co najmniej Windows Server 2016, Windows 10
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Składniki systemu Windows › Rejestrowanie zdarzeń

Rejestr

EnableProtectedEventLogging

REG_DWORDKomputer
Wartość włączona
1
Wartość wyłączona
0
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Włączone
"EnableProtectedEventLogging"=dword:00000001
; Wyłączone
"EnableProtectedEventLogging"=dword:00000000
CMD
:: Opcje (użyj tylko jednej)

:: Włączone
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EnableProtectedEventLogging" /t REG_DWORD /d 1 /f
:: Wyłączone
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EnableProtectedEventLogging" /t REG_DWORD /d 0 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Włączone
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Name 'EnableProtectedEventLogging' -PropertyType DWord -Value 1 -Force | Out-Null
# Wyłączone
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging' -Name 'EnableProtectedEventLogging' -PropertyType DWord -Value 0 -Force | Out-Null

EncryptionCertificate

REG_MULTI_SZKomputer
Wartość włączona
Zależy od wartości opcji
Element
-
Typ wartości
REG_MULTI_SZ
Wymagane
true
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Nazwy i typy wartości są zgodne z plikiem ADMX. Zastąp poniższe <wpisz wartość> własnymi danymi
; Dane hex(2) i hex(7) trzeba zapisać szesnastkowo (UTF-16LE)
"EncryptionCertificate"=hex(7):<wpisz wartość>
CMD
:: Nazwy i typy wartości są zgodne z plikiem ADMX. Zastąp poniższe <wpisz wartość> własnymi danymi

reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog\ProtectedEventLogging" /v "EncryptionCertificate" /t REG_MULTI_SZ /d "<wpisz wartość>" /f
PowerShell
# Nazwy i typy wartości są zgodne z plikiem ADMX. Zastąp poniższe <wpisz wartość> własnymi danymi

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 '<wpisz wartość>' -Force | Out-Null