Поделиться через


MSFT_FSRMAutoQuota class

Creates a new AutoQuota on the server with the provided configuration and returns the FSRM quota object.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[dynamic, provider("FSRMWmiProvider")]
class MSFT_FSRMAutoQuota
{
  string                  Path;
  uint64                  Size;
  boolean                 SoftLimit;
  boolean                 Disabled;
  string                  Template;
  boolean                 UpdateDerived;
  boolean                 UpdateDerivedMatching;
  MSFT_FSRMQuotaThreshold Threshold[];
};

Members

The MSFT_FSRMAutoQuota class has these types of members:

Properties

The MSFT_FSRMAutoQuota class has these properties.

Disabled

Data type: boolean

Access type: Read/write

If set, the server will not track quota data for the quota and will not run any action associated with quota thresholds. The default value is false.

Path

Data type: string

Access type: Read/write

Qualifiers: key

A required string that contains a valid local path to a folder. The value length cannot exceed the MAX_PATH value.

Size

Data type: uint64

Access type: Read-only

Represents the quota limit, in bytes, for the auto quota. If the Template property is not provided then the Size property must be provided.

SoftLimit

Data type: boolean

Access type: Read-only

If this flag is set, the server will not fail violating IO operations but will still run any action associated with the quota thresholds. If this flag is not set, the server will fail an IO operation that causes the disk space usage to exceed the quota limit.

Template

Data type: string

Access type: Read/write

A quota template currently located on the server. Required. May not exceed 1KB.

Threshold

Data type: MSFT_FSRMQuotaThreshold array

Access type: Read-only

Qualifiers: EmbeddedInstance ("MSFT_FSRMQuotaThreshold")

An instance of the MSFT_FSRMQuotaThreshold class that represents the threshold.

UpdateDerived

Data type: boolean

Access type: Read/write

Apply changes to all derived objects, whether their properties match the template's or not.

UpdateDerivedMatching

Data type: boolean

Access type: Read/write

Applies changes to derived objects only if the object's properties match the template's properties.

Note that the comparison is made against the template as it exists in the database, not your local copy that has not been committed yet.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\FSRM
MOF
MSFT_FSRM.mof
DLL
SrmSvc.dll

See also

FSRM WMI Classes

IFsrmAutoApplyQuota