Open in the explorer

Configure log access

Configurer l’accès au journal

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Event Log Service › Security FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Service Journal des événements › Sécurité
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
EventLog.admx
Internal name
EventLog/Channel_Log_FileLogAccess_2

Explanation

This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string. You cannot configure write permissions for this log. You must set both "configure log access" policy settings for this log in order to affect the both modern and legacy tools.

If you enable this policy setting, only those users whose security descriptor matches the configured specified value can access the log.

If you disable or do not configure this policy setting, only system software and administrators can read or clear this log.

Note: If you enable this policy setting, some tools and APIs may ignore it. The same change should be made to the "Configure log access (legacy)" policy setting to enforce this change across all tools and APIs.

French text from Windows 11 26H2

Ce paramètre de stratégie spécifie l’utilisation du descripteur de sécurité pour le journal en utilisant la chaîne SDDL (Security Descriptor Definition Language). Vous ne pouvez pas configurer les autorisations d’écriture pour ce journal.

Si vous activez ce paramètre de stratégie, seuls les utilisateurs dont le descripteur de sécurité correspond à la valeur configurée ont accès au journal.

Si vous désactivez ce paramètre de stratégie ou ne configurez pas, seuls le logiciel système et les administrateurs peuvent lire/effacer ce journal.

Remarque: si vous désactivez ce paramètre de stratégie, il est possible que certains outils et certaines API n'en tiennent pas compte. La même modification doit être appliquée au paramètre de stratégie « Configurer l'accès au journal (héritage) » afin qu'elle puisse être appliquée à tous les outils et APIs.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\EventLog\Security
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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/Channel_Log_FileLogAccess_2
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Security'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Log Access
Set-ItemProperty -Path $k -Name 'ChannelAccess' -Value '<value>' -Type String

Disable

# Disable: EventLog/Channel_Log_FileLogAccess_2
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

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

Options (1)

LabelControlRegistry valueREG typeConstraints / details
Log AccessAccès au journalChannel_Log_FileLogAccessText boxtextChannelAccessREG_SZ

Availability