Configure log access
Configurer l’accès au journal
Explanation
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string.
If you enable this policy setting, only those users matching the security descriptor can access the log.
If you disable or do not configure this policy setting, all authenticated users and system services can write, 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.
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).
Si vous activez ce paramètre de stratégie, seuls les utilisateurs correspondant au descripteur de sécurité ont accès au journal.
Si ce paramètre de stratégie est désactivé ou n’est pas configuré, tous les utilisateurs et services système authentifiés peuvent écrire/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\Application- 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_1
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Log Access
Set-ItemProperty -Path $k -Name 'ChannelAccess' -Value '<value>' -Type StringDisable
# Disable: EventLog/Channel_Log_FileLogAccess_1
# 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_1
$k = 'HKLM:\Software\Policies\Microsoft\Windows\EventLog\Application'
Remove-ItemProperty -Path $k -Name 'ChannelAccess' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Log AccessAccès au journalChannel_Log_FileLogAccess | Text boxtext | ChannelAccess | REG_SZ |