3.16. Configuring a Disk Quota for a User
You want to configure disk quota limits for a particular user.
Using a graphical user interface
Open Windows Explorer.
Browse to the drive on which you want to enable quotas, right-click it, and select Properties.
Click the Quota tab.
If quotas are enabled, click the Quota Entries button. If quotas are not enabled, enable them as described in Recipe 3.15.
To configure a new quota entry for a user, select Quota → New Quota Entry from the menu.
Use the object picker to locate the target user and click OK. The Add New Quota Entry dialog will open.
If you've configured a default quota, that limit will be selected by default. You can disable disk quota enforcement for this user or set new limit and warning levels. After you are done, click OK.
Using a command-line interface
The following command configures a quota for a particular user:
> fsutil quota modify
The following example sets a quota for user AMER\rallen with a ~381 MB warning and ~476 MB limit:
> fsutil quota modify d: 400000000 500000000 AMER\rallen
' This code configures a quota for a particular user. ' ------ SCRIPT CONFIGURATION ------ strComputer = "." strUser = "
<User>" ' e.g., rallen strUserDomain = "
<Domain>" ' e.g., AMER strDrive = "
<Drive>" ' e.g., D: intLimit = 1024 * 1024 * 600 ' = 600 MB intWarning = 1024 * 1024 * 350 ' = 350 MB ' ------ END CONFIGURATION --------- set objWMI = GetObject("winmgmts:\\" ...