共用方式為


Disk Quotas Tools and Settings

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

In this section

  • Disk Quota Tools

  • Disk Quota Registry Entries

  • Disk Quota Group Policy Settings

  • Disk Quota WMI Classes

  • Related Information

The following tools, registry settings, Group Policy settings, and Windows Management Instrumentation (WMI) classes are associated disk quotas on NTFS volumes.

Disk Quota Tools

Disk Quota Tools describes the tools installed with Microsoft Windows Server 2003 as well as downloadable support tools. The tools in this list are those used to create and maintain disk quotas on NTFS volumes.

Dskmgmt.msc: Disk Management

Category

Operating system tool.

Version compatibility

Runs on Windows Server 2003.

Use the Disk Management snap-in for MMC to set disk quota limits on NTFS-formatted volumes for Windows Server 2003.

Dskuse.exe: User Disk Tool

Category

Downloadable support tool.

Version compatibility

Runs on Windows Server 2003. Works on NTFS volumes only.

Scans a single directory, a directory tree, or an entire drive and reports the amount of space used by each user or all users.

To find more information about Dskuse, see “Resource Kit Tools” in Tools and Settings Collection

Fsutil.exe: File Systems Utilities

Category

Operating System tool.

Version compatibility

Windows Server 2003. Requires NTFS as the file system on the volume.

Perform file system tasks such as disabling long file names, checking whether a volume is flagged as dirty, viewing NTFS-related information about a volume, creating hard links, and managing quotas and sparse files.

To find more information about Fsutil, see “Command Line References” in Tools and Settings Collection.

Disk Quotas Registry Entries

The registry entries listed in this section are associated with file systems.

The information here is provided as a reference for use in troubleshooting or verifying that the required settings are applied. It is recommended that you do not directly edit the registry unless there is no other alternative. Modifications to the registry are not validated by the registry editor or by Windows before they are applied, and as a result, incorrect values can be stored. This can result in unrecoverable errors in the system. When possible, use Group Policy or other Windows tools, such as Microsoft Management Console (MMC), to accomplish tasks rather than editing the registry directly. If you must edit the registry, use extreme caution.

DiskQuota

The file registry entries for DiskQuota can be found under HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota.

ApplyToRemovableMedia

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Microsoft Windows NT 4.0 Server and Windows NT 4.0 Workstation and later.

Extends the disk quota policies to NTFS file system volumes on removable media.

To find more information about this registry entry, see “Registry Reference” in Tools and Settings Collection.

Enable

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Windows NT 4.0 Server and Windows NT 4.0 Workstation and later.

Enables and disables disk quota management on all NTFS file system volumes of the computer, and prevents users from changing disk quota settings.

To find more information about this registry entry, see “Registry Reference” in Tools and Settings Collection.

Enforce

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Windows NT 4.0 Server and Windows NTNT 4.0 Workstation and later.

Determines whether disk quota limits are enforced, and prevents users from changing the setting.

To find more information about this registry entry, see “Registry Reference” in Tools and Settings Collection.

Limit

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Windows NT 4.0 Server and Windows NT 4.0 Workstation and later.

Specifies the number of units in the default disk quota limit for new users of an NTFS file system volume.

To find more information about this registry entry, see “Registry Reference” in Tools and Settings Collection.

LimitUnits

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Windows NT 4.0 Server and Windows NT 4.0 Workstation and later.

Specifies the units used in the default disk quota limit for new users of an NTFS volume.

To find more information about this registry entry, see “Registry Reference” in Tools and Settings Collection.

LogEventOverLimit

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Windows NT 4.0 Server and Windows NT 4.0 Workstation and later.

Determines whether the system records an event in the local Application Log when users reach the disk quota limit on a volume, and prevents users from changing the logging setting.

To find more information about registry setting, see “Registry Reference” in Tools and Settings Collection.

LogEventOverThreshold

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Windows NT 4.0 Server and Windows NT 4.0 Workstation and later.

Determines whether the system records an event in the local Application Log when users reach the disk quota warning level, and prevents users from changing the logging setting.

To find more information about this registry entry, see “Registry Reference” in Tools and Settings Collection.

Threshold

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Windows NT 4.0 Server and Windows NT 4.0 Workstation and later.

Specifies the number of units in the default disk quota warning level for new users of an NTFS volume.

To find more information about this registry entry, see “Registry Reference” in Tools and Settings Collection.

ThresholdUnits

Registry path

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\DiskQuota

Version

Windows NT 4.0 Server and Windows NT 4.0 Workstation and later.

Specifies the units for the default disk quota warning level for new users of an NTFS volume.

To find more information about this registry entry, see “Registry Reference” in Tools and Settings Collection.

Disk Quotas Group Policy Settings

The following table, “Group Policy Settings Associated with Disk Quotas,” lists and describes the Group Policy settings that are associated with disk quotas.

Group Policy Settings Associated with Disk Quotas

Group Policy Setting Description

DiskQuotaEnable

Enables disk quotas on an NTFS volume. This policy is not used on FAT volumes.

DiskQuotaLimit

Specifies the disk quota limit and warning level. This policy is not used on FAT volumes.

DiskQuotaLogEventOverThreshold

Specifies whether an application log event is created when a user exceeds disk quota limit. This policy is not used on FAT volumes.

DiskQuotaApplyToRemovableMedia

Specifies whether disk quotas policies are applied to removable media. This policy is not used on FAT volumes.

To find more information about Group Policy settings, see “Group Policy Settings Reference” in Tools and Settings Collection.

Disk Quota WMI Classes

The following table, “WMI Classes Associated with Disk Quotas,” lists and describes the WMI classes that are associated with disk quotas.

WMI Classes Associated with Disk Quotas

Class Name Namespace Version Compatibility

Win32_DiskQuota

//root/cimv2

Windows XP and Windows Server 2003

Win32_QuotaSetting

//root/cimv2

Windows XP and Windows Server 2003

Win32_VolumeQuota

//root/cimv2

Windows Server 2003

Win32_VolumeQuotaSetting

//root/cimv2

Windows XP and Windows Server 2003

For more information about these WMI classes, see the WMI SDK documentation on MSDN.

The following resources contain additional information that is relevant to this section.