Advertisement

Set Disk Quota in Command Prompt in Windows 10

NTFS is the standard file system of the Windows NT operating system family. It supports disk quotas, that help administrators track and control disk space usage by users. This post explains how to configure disk quotas in the command prompt in Windows 10.

Advertisement

The NTFS file system allows administrators to control the amount of data that each user can store on an NTFS file system 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.

The Disk Quota feature can be enabled for an individual drive, or forced for all drives. Also, there are a number of options you can adjust for disk quotas. Before proceeding, ensure that your user account has administrative privileges.

Normally, you can use the GUI to set disk quotas in Windows 10. The operation is reviewed in detail in the article How To Enable Disk Quotas In Windows 10.

 Windows 10 Disk Quota 3

In certain situations, it can be useful to check and configure disk quotas in the command prompt. Here is how it can be done.

To Set Disk Quota in Command Prompt in Windows 10,

  1. Open an elevated command prompt.
  2. Type or copy-paste the following command:
    fsutil quota track drive_letter:.
  3. Substitute the drive_letter portion with the actual drive letter of the disk for which you want to enable quotas.Windows 10 Enable Disk Quotas Fsutil
  4. To disable disk quotas, execute the command fsutil quota disable drive_letter:.

Set Disk Quota Limit and Warning Level

  1. Open an elevated command prompt.
  2. To see the current limits, type or copy-paste the following command: fsutil quota query drive_letter:
  3. Substitute the drive_letter portion with the actual drive letter of the disk for which you want to see disk quota limits.Windows 10 See Disk Quotas Fsutil
  4. To change disk quota limits, run the command: fsutil quota modify drive_letter: warning_level_in_bytes quota_limit_in_bytes user_name. For example: fsutil quota modify D: 1073741824 16106127360 StdWinaero.Windows 10 Change Disk Quotas Fsutil
  5. The disk quota limit is now changed for the specified user account.Windows 10 Disk Quotas Fsutil Changed

Note: Use the following reference values to change the limits quickly.

1 Kilobyte (KB) = 1,024 Bytes (B)
1 Megabyte (MB) = 1,048,576 Bytes (B)
1 Gigabyte (GB) = 1,073,741,824 Bytes (B)
1 Terabyte (TB) = 1,099,511,627,776 Bytes (B)

Replace the following parameters with their actual values:

  • Substitute drive_letter with the actual drive letter you want to set a disk quota limit and warning level for.
  • Substitute warning_level_in_bytes with the desired value to set the warning level to in bytes. To remove the limit, use a value data of 0xffffffffffffffff.
  • Set the quota_limit_in_bytes parameter to the desired quota limit in bytes ( for 'no limit' use 0xffffffffffffffff).
  • Finally, replace user_name with the actual use account name for which you want to set a quota limit and its warning level.

Deny disk space to users exceeding quota limit

  1. Open an elevated command prompt.
  2. Type or copy-paste the following command:
     fsutil quota enforce drive_letter:
  3. Substitute the drive_letter portion with the actual drive.
  4. Now, when a user reaches an enforced disk quota limit, the system will prevent further disk write operations to the drive.Windows 10 Enforce Disk Quotas Fsutil

You are done.

Related articles:

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Advertisment

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

Leave a Reply

Your email address will not be published.

css.php
Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.