Open in the explorer

Log event when quota warning level is exceeded

Enregistrer l’événement lorsque le niveau d’avertissement de quota est dépassé

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › Disk Quotas FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › Quotas de disque
Supported on
At least Windows 2000 FR: Au minimum Windows 2000
ADMX file
DiskQuota.admx
Internal name
DiskQuota/DQ_LogEventOverThreshold

Explanation

This policy setting determines whether the system records an event in the Application log when users reach their disk quota warning level on a volume.

If you enable this policy setting, the system records an event. If you disable this policy setting, no event is recorded. When you enable or disable this policy setting, the system disables the corresponding "Log event when a user exceeds their warning level" option on the Quota tab so that administrators cannot change logging while a policy setting is in effect.

If you do not configure this policy setting, no event is recorded, but administrators can use the Quota tab option to change the logging setting.

This policy setting does not affect the Quota Entries window on the Quota tab. Even without the logged event, users can detect that they have reached their warning level because their status in the Quota Entries window changes.

Note: To find the logging option, in My Computer, right-click the name of an NTFS file system volume, click Properties, and then click the Quota tab.

French text from Windows 11 26H2

Ce paramètre de stratégie détermine si le système enregistre un événement dans le journal d’application quand les utilisateurs atteignent leurs niveaux d’avertissement de quota de disque sur un volume.

Si vous activez ce paramètre de stratégie, le système enregistre un événement. Si vous désactivez ce paramètre, aucun événement n’est enregistré. Lorsque vous activez ou désactivez ce paramètre de stratégie, le système désactive l’option « Enregistrer l’événement lorsqu’un utilisateur excède son niveau d’avertissement » correspondante sous l’onglet Quota pour que les administrateurs ne puissent pas modifier la journalisation pendant qu’un paramètre est en vigueur.

Si vous ne configurez pas ce paramètre de stratégie, aucun événement n’est enregistré, mais les administrateurs peuvent utiliser l’option de l’onglet Quota pour modifier le paramètre de journalisation.

Ce paramètre de stratégie n’affecte pas la fenêtre Entrées de quota sous l’onglet Quota. Même sans événement enregistré, les utilisateurs peuvent détecter qu’ils ont atteint leur niveau d’avertissement car leur statut change dans la fenêtre Entrées de quota.

Remarque : pour trouver l’option de journalisation, dans Poste de travail, cliquez avec le bouton droit sur le nom d’un volume NTFS, cliquez sur Propriétés, puis cliquez sur l’onglet Quota.

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota
Value name
LogEventOverThreshold
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: DiskQuota/DQ_LogEventOverThreshold
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'LogEventOverThreshold' -Value 1 -Type DWord

Disable

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

Revert to "Not configured"

# Revert to "Not configured": DiskQuota/DQ_LogEventOverThreshold
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\DiskQuota'
Remove-ItemProperty -Path $k -Name 'LogEventOverThreshold' -ErrorAction SilentlyContinue

Availability