次の方法で共有


Assign default quota values

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To assign default quota values

  • Using the Windows interface

  • Using a command line

Using the Windows interface

  1. Open My Computer.

  2. Right-click the volume for which you want to assign default quota values, and then click Properties.

  3. In the Properties dialog box, click the Quota tab.

  4. On the Quota tab, select the Enable quota management check box, and then select the Limit disk space to option.

  5. Type numeric values for the disk space limit and warning levels, select the appropriate units from the drop-down lists, and then click OK.

    You can use decimal values (for example, 20.5 MB).

Notes

  • To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Run as to perform this procedure. For more information, see Default local groups, Default groups, and Using Run as.

  • To open My Computer, click Start, and then click My Computer.

  • If the volume is not formatted with the NTFS file system, or if you are not a member of the Administrators group, the Quota tab is not displayed in the volume`s properties dialog box.

  • When you enable disk quotas on a volume, any users with write access to the volume who have not exceeded their quota limit can store data on the volume. The first time a user writes data to a quota-enabled volume, default values for disk space limit and warning level are automatically assigned by the quota system.

Using a command line

  1. Open Command Prompt.

  2. Type:

    fsutil quota modify [VolumePathname] [threshold] [limit] [username]

Value Description

VolumePathname

The drive letter (followed by a colon).

Threshold

The limit, in bytes, at which warnings are issued.

limit

The maximum allowed disk usage, in bytes.

username

The domain and user name of the user whose disk usage you want to limit.

Notes

  • To perform this procedure, you must be a member of the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Run as to perform this procedure. For more information, see Default local groups, Default groups, and Using Run as.

  • To open a command prompt, click Start, point to All programs, point to Accessories, and then click Command prompt.

  • In order to assign default quota values, the volume must be formatted with the NTFS file system.

  • For more information about fsutil, see Related Topics.

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

Concepts

Deny disk space to users who exceed their limit
Quotas and users
Quotas and volumes
Fsutil: quota