Ogranicz dostęp zdalny do usługi dziennika zdarzeń: wartość rejestru EnableRemoteRpcAccessRestrictions i 1 więcejKomputerHKLM\Software\Policies\Microsoft\Windows\EventLog

Identyfikator zasady
RpcAccess_Remote
Zakres
Konfiguracja komputera
Obsługiwane w systemach
-
Źródło
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (wersja 1.0)
Kategoria
Składniki systemu Windows › Usługa Dziennik zdarzeń

Rejestr

EnableRemoteRpcAccessRestrictions

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]

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

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

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

RpcAccess_Remote_Setting

REG_DWORDKomputer
Wartość włączona
Zależy od wartości opcji
Element
Wybierz jedno z następujących ustawień:
Opcje
PozycjaZapisana wartość
Użytkownicy uwierzytelnieni0
Czytelnicy dzienników zdarzeń1
Administratorzy2
Zastosuj przez .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Opcje (użyj tylko jednej)
; Użytkownicy uwierzytelnieni
"RpcAccess_Remote_Setting"=dword:00000000
; Czytelnicy dzienników zdarzeń
"RpcAccess_Remote_Setting"=dword:00000001
; Administratorzy
"RpcAccess_Remote_Setting"=dword:00000002
CMD
:: Opcje (użyj tylko jednej)

:: Użytkownicy uwierzytelnieni
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog" /v "RpcAccess_Remote_Setting" /t REG_DWORD /d 0 /f
:: Czytelnicy dzienników zdarzeń
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog" /v "RpcAccess_Remote_Setting" /t REG_DWORD /d 1 /f
:: Administratorzy
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog" /v "RpcAccess_Remote_Setting" /t REG_DWORD /d 2 /f
PowerShell
# Wspólne: utwórz klucz
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Force | Out-Null

# Opcje (użyj tylko jednej)
# Użytkownicy uwierzytelnieni
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'RpcAccess_Remote_Setting' -PropertyType DWord -Value 0 -Force | Out-Null
# Czytelnicy dzienników zdarzeń
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'RpcAccess_Remote_Setting' -PropertyType DWord -Value 1 -Force | Out-Null
# Administratorzy
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'RpcAccess_Remote_Setting' -PropertyType DWord -Value 2 -Force | Out-Null