Limit remote access to the Event Log Service: registry value EnableRemoteRpcAccessRestrictions and 1 moreComputerHKLM\Software\Policies\Microsoft\Windows\EventLog

Policy ID
RpcAccess_Remote
Scope
Computer Configuration
Supported on
-
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Event Log Service

Registry

EnableRemoteRpcAccessRestrictions

REG_DWORDComputer
Enabled value
1
Disabled value
0
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (use only one)
; Enabled
"EnableRemoteRpcAccessRestrictions"=dword:00000001
; Disabled
"EnableRemoteRpcAccessRestrictions"=dword:00000000
CMD
:: Options (use only one)

:: Enabled
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog" /v "EnableRemoteRpcAccessRestrictions" /t REG_DWORD /d 1 /f
:: Disabled
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog" /v "EnableRemoteRpcAccessRestrictions" /t REG_DWORD /d 0 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Force | Out-Null

# Options (use only one)
# Enabled
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'EnableRemoteRpcAccessRestrictions' -PropertyType DWord -Value 1 -Force | Out-Null
# Disabled
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'EnableRemoteRpcAccessRestrictions' -PropertyType DWord -Value 0 -Force | Out-Null

RpcAccess_Remote_Setting

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Pick one of the following settings:
Options
ItemStored value
Authenticated Users0
Event Log Readers1
Administrators2
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

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

; Options (use only one)
; Authenticated Users
"RpcAccess_Remote_Setting"=dword:00000000
; Event Log Readers
"RpcAccess_Remote_Setting"=dword:00000001
; Administrators
"RpcAccess_Remote_Setting"=dword:00000002
CMD
:: Options (use only one)

:: Authenticated Users
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog" /v "RpcAccess_Remote_Setting" /t REG_DWORD /d 0 /f
:: Event Log Readers
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog" /v "RpcAccess_Remote_Setting" /t REG_DWORD /d 1 /f
:: Administrators
reg add "HKLM\Software\Policies\Microsoft\Windows\EventLog" /v "RpcAccess_Remote_Setting" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Force | Out-Null

# Options (use only one)
# Authenticated Users
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'RpcAccess_Remote_Setting' -PropertyType DWord -Value 0 -Force | Out-Null
# Event Log Readers
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'RpcAccess_Remote_Setting' -PropertyType DWord -Value 1 -Force | Out-Null
# Administrators
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\EventLog' -Name 'RpcAccess_Remote_Setting' -PropertyType DWord -Value 2 -Force | Out-Null