Published by


Brink's Avatar
Administrator

Posts: 29,378

Show Printable Version 


information   Information
Disk quotas track and control disk space usage for NTFS file system volumes, allowing administrators to control the amount of data that each user can store on a specific NTFS volume. Administrators can optionally configure the system to log an event when users are near their quota, and to deny further disk space to users who exceed their quota. Administrators can also generate reports, and use the event monitor to track quota issues.

Enforcing disk quota limits is optional. When users reach an enforced disk quota limit, the system responds as though the physical space on the volume were exhausted. When users reach an unenforced limit, their status in the Quota Entries window changes, but they can continue to write to the volume as long as physical space is available.

You can set Windows to record an event log in Event Viewer whenever users exceed their disk quota limit on a NTFS volume.

This tutorial will show you how to enable or disable logging an event when users exceed their disk quota limit in Windows 7, Windows 8, and Windows 10.

You must be signed in as an administrator to enable or disable logging an event when users exceed their disk quota limit.
Note   Note
To see the event log for when users exceed their disk quota limit:

A) Open Event Viewer (eventvwr.msc)
B) Open Windows Logs and System in the left pane of Event Viewer.
C) Look for events with an Event ID of 37 in the middle pane of Event Viewer.
Click image for larger version. 

Name:	Event_Viewer_log_for_disk_quota_limit_exceeded.png 
Views:	72 
Size:	91.7 KB 
ID:	167634

CONTENTS:
  • Option One: Enable or Disable Log Event when Disk Quota Limit Exceeded for Specific NTFS Drive in Drive Properties
  • Option Two: Enable or Disable Log Event when Disk Quota Limit Exceeded for All NTFS Drives in Local Group Policy Editor
  • Option Three: Enable or Disable Log Event when Disk Quota Limit Exceeded for All NTFS Drives using a BAT file





Enable or Disable Log Event when Disk Quota Limit Exceeded in Windows OPTION ONE Enable or Disable Log Event when Disk Quota Limit Exceeded in Windows
Enable or Disable Log Event when Disk Quota Limit Exceeded for Specific NTFS Drive in Drive Properties

1. If you haven't already, you will need to first enable disk quotas for the NTFS drive (ex: "G") you want to enable or disable to log event event when a user exceeds their quota limit.

2. Open This PC in File Explorer (Win+E).

3. Right click or press and hold on the NTFS drive (ex: "G") you want to enable or disable to log event when quota limit is exceeded for, and click/tap on Properties. (see screenshot below)

Name:  Log_event_Disk_Quota_limit-1.jpg
Views: 158
Size:  55.4 KB

4. Click/tap on the Quota tab, and click/tap on the Show Quota Settings button. (see screenshot below)

Name:  Log_event_Disk_Quota_limit-2.png
Views: 158
Size:  22.4 KB

5. Check (enable) or uncheck (disable) the Log event when a user exceeds their quota limit box for what you want, and click/tap on OK. (see screenshot below)

Name:  Log_event_Disk_Quota_limit-3.png
Views: 157
Size:  26.3 KB

6. Click/tap on OK. (see screenshot below step 4)

7. You may also want to:






Enable or Disable Log Event when Disk Quota Limit Exceeded in Windows OPTION TWO Enable or Disable Log Event when Disk Quota Limit Exceeded in Windows
Enable or Disable Log Event when Disk Quota Limit Exceeded for All NTFS Drives in Local Group Policy Editor

Note   Note
In Windows 7, the Local Group Policy Editor will only be available in the Professional, Ultimate, and Enterprise editions.

In Windows 8, the Local Group Policy Editor will only be available in the Pro and Enterprise editions.

In Windows 10, the Local Group Policy Editor will only be available in the Pro, Enterprise, and Education editions.

All editions can use Option Three below to set this same policy.

1. Open the Local Group Policy Editor.

2. In the left pane of Local Group Policy Editor, navigate to the location below. (see screenshot below)

Computer Configuration\Administrative Templates\System\Disk Quotas

Name:  Log_event_Disk_Quota_limit_gpediit-1.jpg
Views: 154
Size:  79.7 KB

3. In the right pane of Disk Quotas in Local Group Policy Editor, double click/tap on the Log event when quota limit is exceeded policy to edit it. (see screenshot above)

4. Do step 5 (enable), step 6 (disable), or step 7 (not configured) below for what you would like to do.


 5. To Enable Log Event when Disk Quota Limit Exceeded for All NTFS Drives

Note   Note
If you enable this policy setting, the system records an event when the user reaches their limit. When you enable this policy setting, the system disables the "Log event when a user exceeds their quota limit" option on the Quota tab so administrators cannot make changes using Option One.

A) Select (dot) Enabled, click/tap on OK, and go to step 8 below. (see screenshot below step 7)


 6. To Disable Log Event when Disk Quota Limit Exceeded for All NTFS Drives

Note   Note
If you disable this policy setting, no event is recorded. When you disable this policy setting, the system disables the "Log event when a user exceeds their quota limit" option on the Quota tab so administrators cannot make changes using Option One while this setting is in effect.

A) Select (dot) Disabled, click/tap on OK, and go to step 8 below. (see screenshot below step 7)


 7. To Set Log Event when Disk Quota Limit Exceeded Policy to Not Configured

Note   Note
This is the default setting.

If you do not configure this policy setting, no events are recorded, but administrators can change the setting using Option One.

A) Select (dot) Not Configured, click/tap on OK, and go to step 8 below. (see screenshot below step 7)

Name:  Log_event_Disk_Quota_limit_gpediit-2.jpg
Views: 164
Size:  113.7 KB

8. When finished, you can close the Local Group Policy Editor if you like.

9. You may also want to:






Enable or Disable Log Event when Disk Quota Limit Exceeded in Windows OPTION THREE Enable or Disable Log Event when Disk Quota Limit Exceeded in Windows
Enable or Disable Log Event when Disk Quota Limit Exceeded for All NTFS Drives using a BAT file

Note   Note
The downloadable .bat files below will change the registry key and value below.

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DiskQuota

LogEventOverLimit DWORD

(delete) = Not Configured (Default)
0 = Disabled
1 = Enabled

1. Do step 2 (enable), step 3 (disable), or step 4 (not configured) below for what you would like to do.


 2. To Enable Log Event when Disk Quota Limit Exceeded for All NTFS Drives

Note   Note
If you enable this policy setting, the system records an event when the user reaches their limit. When you enable this policy setting, the system disables the "Log event when a user exceeds their quota limit" option on the Quota tab so administrators cannot make changes using Option One.

A) Click/tap on the Download button below to download the BAT file below, and go to step 5 below.

Enable_log_event_when_quota_limit_is_exceeded_for_all_NTFS_volumes.bat

download


 3. To Disable Log Event when Disk Quota Limit Exceeded for All NTFS Drives

Note   Note
If you disable this policy setting, no event is recorded. When you disable this policy setting, the system disables the "Log event when a user exceeds their quota limit" option on the Quota tab so administrators cannot make changes using Option One while this setting is in effect.

A) Click/tap on the Download button below to download the BAT file below, and go to step 5 below.

Disable_log_event_when_quota_limit_is_exceeded_for_all_NTFS_volumes.bat

download


 4. To Set Log Event when Disk Quota Limit Exceeded Policy to Not Configured

Note   Note
This is the default setting.

If you do not configure this policy setting, no events are recorded, but administrators can change the setting using Option One.

A) Click/tap on the Download button below to download the BAT file below, and go to step 5 below.

Not_Configured_log_event_when_quota_limit_is_exceeded_for_all_NTFS_volumes.bat

download

5. Save the .bat file to your desktop.

6. Unblock the .bat file.

7. Right click or press and hold on the downloaded .bat file, and click/tap on Run as administrator.

8. You will now see a command prompt open, apply the registry changes, update group policy, and automatically close.

9. You may also want to:


That's it,
Shawn