Configure log access (legacy)
Configurer l'accès au journal (hérité)
Explanation
This policy setting specifies the security descriptor to use for the log using the Security Descriptor Definition Language (SDDL) string. 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 matching the security descriptor can access the log.
If you disable this policy setting, all authenticated users and system services can write, read, or clear this log.
If you do not configure this policy setting, the previous policy setting configuration remains in effect.
Ce paramètre de stratégie spécifie le descripteur de sécurité à utiliser pour le journal à l'aide de la chaîne SDDL (Security Descriptor Definition Language). Vous devez définir les deux paramètres de stratégie « configurer l'accès au journal » pour ce journal pour pouvoir affecter les outils modernes et hérités.
Si vous activez ce paramètre de stratégie, seuls les utilisateurs correspondant au descripteur de sécurité pourront accéder au journal.
Si vous désactivez ce paramètre de stratégie, tous les utilisateurs authentifiés et les services système pourront écrire, lire ou effacer ce journal.
Si vous ne configurez pas ce paramètre de stratégie, la configuration précédente du paramètre de stratégie est conservée.
Registry
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog\Setup- 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_7
$k = 'HKLM:\System\CurrentControlSet\Services\EventLog\Setup'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Log Access
Set-ItemProperty -Path $k -Name 'CustomSD' -Value '<value>' -Type StringDisable
# Disable: EventLog/Channel_Log_FileLogAccess_7
# 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_7
$k = 'HKLM:\System\CurrentControlSet\Services\EventLog\Setup'
Remove-ItemProperty -Path $k -Name 'CustomSD' -ErrorAction SilentlyContinueOptions (1)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Log AccessAccès au journalChannel_Log_FileLogAccess | Text boxtext | CustomSD | REG_SZ |