Open in the explorer

Limit remote access to the Event Log Service

Limiter l’accès à distance au service journal des événements

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Event Log Service FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Service Journal des événements
Supported on
SUPPORTED_Windows_11_0_22H1
ADMX file
EventLog.admx
Internal name
EventLog/RpcAccess_Remote

Explanation

This policy setting controls which remote users will be allowed to connect to the Event Log service on this machine.

If you enable this policy, you can restrict which group remote users must be a member of in order to connect to the Event Log Service on this machine. You can require that remote users be a member of one of the following builtin groups:

• Authenticated Users
• EventLog Readers
• Administrators

If you disable or do not configure this policy, the default value will be Authenticated Users.

For prior versions of Windows, only Authenticated Users was supported. To maintain backwards compatability, local connections to the service will always be allowed from Authenticated Users.

This setting does not control access to individual logs. Once a remote connection is allowed, it will still need access to the specific resources it is attempting to use.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle les utilisateurs distants qui seront autorisés à se connecter au service de journal des événements sur cette machine.

Si vous activez cette stratégie, vous pouvez limiter le groupe auquel les utilisateurs distants doivent appartenir pour se connecter au service de journal des événements sur cette machine. Vous pouvez exiger que les utilisateurs distants soient membres de l’un des groupes intégrés suivants :

• Utilisateurs authentifiés
• Lecteurs de journaux des événements
• Administrateurs

Si vous désactivez ou ne configurez pas cette stratégie, la valeur par défaut sera Utilisateurs authentifiés.

Pour les versions antérieures de Windows, seuls les utilisateurs authentifiés étaient pris en charge. Pour maintenir la compatibilité avec les versions antérieures, les connexions locales au service seront toujours autorisées à partir d’utilisateurs authentifiés.

Ce paramètre ne contrôle pas l’accès aux journaux individuels. Une fois qu’une connexion à distance est autorisée, elle doit toujours avoir accès aux ressources spécifiques qu’elle tente d’utiliser.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\EventLog
Value name
EnableRemoteRpcAccessRestrictions
StateValue written
EnabledREG_DWORD = 1
DisabledREG_DWORD = 0

PowerShell

PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.

Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.

Enable

# Enable: EventLog/RpcAccess_Remote
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EventLog'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableRemoteRpcAccessRestrictions' -Value 1 -Type DWord
# Pick one of the following settings
# Possible options:
#   Authenticated Users = 0
#   Event Log Readers = 1
#   Administrators = 2
Set-ItemProperty -Path $k -Name 'RpcAccess_Remote_Setting' -Value 0 -Type DWord

Disable

# Disable: EventLog/RpcAccess_Remote
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EventLog'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'EnableRemoteRpcAccessRestrictions' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": EventLog/RpcAccess_Remote
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EventLog'
Remove-ItemProperty -Path $k -Name 'EnableRemoteRpcAccessRestrictions' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'RpcAccess_Remote_Setting' -ErrorAction SilentlyContinue

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Pick one of the following settings:Choisissez l’un des paramètres suivants :RpcAccess_Remote_SettingDrop-down listenumRpcAccess_Remote_SettingREG_DWORD
Required · Default choice (UI): #0
LabelValue
Authenticated UsersREG_DWORD = 0
Event Log ReadersREG_DWORD = 1
AdministratorsREG_DWORD = 2

Availability

Windows 11

✓ 26H2✓ 25H2✓ 24H2— 23H2— 22H2— 21H2

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016