Published by


Brink's Avatar
Administrator

Posts: 29,287

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.

This tutorial will show you how to enable or disable enforcing disk quota limits for specific or all NTFS volumes in Windows 7, Windows 8, and Windows 10.

You must be signed in as an administrator to enable or disable enforcing disk quota limits

CONTENTS:
  • Option One: Enable or Disable Enforce Disk Quota Limits for Specific NTFS Drive in Drive Properties
  • Option Two: Enable or Disable Enforce Disk Quota Limits for Specific NTFS Drive in Command Prompt
  • Option Three: Enable or Disable Enforce Disk Quota Limits for All NTFS Drives in Local Group Policy Editor
  • Option Four: Enable or Disable Enforce Disk Quota Limits for All NTFS Drives using a BAT file


EXAMPLE: "Enforced disk quota limit reached" and "Quota Entries"
Name:  Enforced_disk_quota_limit.png
Views: 205
Size:  14.8 KB Name:  Quota_Entries.jpg
Views: 186
Size:  40.5 KB






Enable or Disable to Enforce Disk Quota Limits in Windows OPTION ONE Enable or Disable to Enforce Disk Quota Limits in Windows
Enable or Disable Enforce Disk Quota Limits 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 enforcing disk quota limits on.

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 disk enforcing disk quota limits for, and click/tap on Properties. (see screenshot below)

Name:  Enforce_Disk_Quota_limit-1.jpg
Views: 194
Size:  55.4 KB

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

Name:  Enforce_Disk_Quota_limit-2.png
Views: 189
Size:  22.4 KB

5. Check (enable) or uncheck (disable) the Deny disk space to users exceeding quota limit box for what you want, and click/tap on OK. (see screenshot below)

Name:  Enforce_Disk_Quota_limit-3.png
Views: 195
Size:  27.5 KB

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

7. You may also want to:





Enable or Disable to Enforce Disk Quota Limits in Windows OPTION TWO Enable or Disable to Enforce Disk Quota Limits in Windows
Enable or Disable Enforce Disk Quota Limits for Specific NTFS Drive in Command Prompt

1. If you haven't already, you will need to first enable disk quotas for the drive (ex: "G") you want to enable or disable enforcing disk quota limits on.

2. Open an elevated command prompt.

3. Do step 4 (enable) or step 5 (disable) below for what you want to do.


 4. To Enable Enforce Disk Quota Limits for Specific NTFS Drive

A) Type the command below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshots below)

fsutil quota enforce <drive letter>:

Note   Note
Substitute <drive letter> in the command above for the the actual drive letter (ex: "G") of the NTFS volume you want to enable enforcing disk quota limits for.

For example: fsutil quota enforce G:
Name:  Enable_enforce_Disk_Quota_limit-command.png
Views: 178
Size:  8.3 KB


 5. To Disable Disk Quotas and Enforce Disk Quota Limits for Specific NTFS Drive

NOTE: This is the default setting.

A) Type the command below into the elevated command prompt, press Enter, and go to step 6 below. (see screenshots below)

fsutil quota disable <drive letter>:

Note   Note
Substitute <drive letter> in the command above for the the actual drive letter (ex: "G") of the NTFS volume you want to disable enforcing disk quota limits for.

For example: fsutil quota disable G:
Name:  Disable_Disk_Quota_and_enforce_limit-command.png
Views: 178
Size:  8.4 KB

6. You can now close the elevated command prompt.

7. You may also want to:





Enable or Disable to Enforce Disk Quota Limits in Windows OPTION THREE Enable or Disable to Enforce Disk Quota Limits in Windows
Enable or Disable Enforce Disk Quota Limits 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 Four below to set this same policy.

1. If you haven't already, you will need to first enable disk quotas for all NTFS drives to be able to enable enforcing disk quota limits on them.

2. Open the Local Group Policy Editor.

3. 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:  Enforce_Disk_Quota_limit_gpedit-1.jpg
Views: 214
Size:  78.6 KB

4. In the right pane of Disk Quotas in Local Group Policy Editor, double click/tap on the Enforce disk quota limit policy to edit it. (see screenshot above)

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


 6. To Enable Enforce Disk Quota Limits for All NTFS Drives

Note   Note
If you enable this policy setting, disk quota limits are enforced. When you enable this policy setting, the system disables the "Deny disk space to users exceeding quota limit" option on the Quota tab so administrators cannot make changes using Option One or Option Two while the setting is in effect.

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


 7. To Disable Enforce Disk Quota Limits for All NTFS Drives

Note   Note
If you disable this policy setting, disk quota limits are not enforced. When you disable this policy setting, the system disables the "Deny disk space to users exceeding quota limit" option on the Quota tab so administrators cannot make changes using Option One or Option Two while the setting is in effect.

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


 8. To Set Enforce Disk Quota Limit Policy to Not Configured

Note   Note
This is the default setting.

If you do not configure this policy setting, the disk quota limit is not enforced by default, but administrators can change the setting using Option One or Option Two.

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

Name:  Enforce_Disk_Quota_limit_gpedit-2.jpg
Views: 213
Size:  109.9 KB

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

10. You may also want to:





Enable or Disable to Enforce Disk Quota Limits in Windows OPTION FOUR Enable or Disable to Enforce Disk Quota Limits in Windows
Enable or Disable Disk Quotas 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

Enforce 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 Enforce Disk Quota Limits for All NTFS Drives

Note   Note
If you enable this policy setting, disk quota limits are enforced. When you enable this policy setting, the system disables the "Deny disk space to users exceeding quota limit" option on the Quota tab so administrators cannot make changes using Option One or Option Two while the setting is in effect.

This setting will also enable disk quotas for all NTFS drives.

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

Enable_enforce_Disk_Quota_limits_for_all_NTFS_volumes.bat

download


 3. To Disable Enforce Disk Quota Limits for All NTFS Drives

Note   Note
If you disable this policy setting, disk quota limits are not enforced. When you disable this policy setting, the system disables the "Deny disk space to users exceeding quota limit" option on the Quota tab so administrators cannot make changes using Option One or Option Two while the 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_enforce_Disk_Quota_limits_for_all_NTFS_volumes.bat

download


 4. To Set Enforce Disk Quota Limit Policy to Not Configured

Note   Note
This is the default setting.

If you do not configure this policy setting, the disk quota limit is not enforced by default, but administrators can change the setting using Option One or Option Two.

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

Not_Configured_enforce_Disk_Quota_limits_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