New-FileUserQuota

SYNOPSIS

Creates a new file user quota.

SYNTAX

New-FileUserQuota [-Cluster] <Cluster> [-FileSystemId] <string> [-TreeQuotaId <string>] [-UID <string>] [-UnixName <string>] [-WindowsName <string>] [-WindowsSID <string>]
 [-HardLimit <long>] [-SoftLimit <long>] [-WhatIf] [<CommonParameters>]

DESCRIPTION

Creates a new file user quota.

EXAMPLES

Example 1

PS C:\> New-FileUserQuota -Cluster $cluster -FileSystemId uuid1 -WindowsSID wsid1 -SoftLimit 100000 -HardLimit 500000

Where $cluster is a PowerStore cluster instance. Creates a new file user quota on the file system with ID uuid1 and WindowsSid wsid1. Sets the soft limit to 100000 bytes and the hard limit to 500000 bytes on the quota, rounding up to the filesystem block size.

Example 2

PS C:\> New-FileUserQuota -Cluster $cluster -FileSystemId uuid1 -WindowsName wname1 -SoftLimit 100000 -HardLimit 5000000

Where $cluster is a PowerStore cluster instance. Creates a new file user quota on the file system with ID uuid1 and WindowsName wname1 . Sets the soft limit to 100000 bytes and the hard limit to 500000 bytes on the quota, rounding up to the filesystem block size.

Example 3

PS C:\> New-FileUserQuota -Cluster $cluster -FileSystemId uuid1 -TreeQuotaId tqid1 -WindowsName wname1  -SoftLimit 100000 -HardLimit 500000

Where $cluster is a PowerStore cluster instance. Creates a new file user quota on the file system with ID uuid, tree quota ID tqid1 and WindowsName wname1 . Sets the soft limit to 100000 bytes and the hard limit to 500000 bytes on the quota, rounding up to the filesystem block size.

Example 4

PS C:\> New-FileUserQuota -Cluster $cluster -FileSystemId uuid1 -TreeQuotaId tqid1 -UnixName uname1  -SoftLimit 100000 -HardLimit 50000

Where $cluster is a PowerStore cluster instance. Creates a new file user quota on the file system with ID uuid, tree quota ID tqid1 and UnixName uname1 . Sets the soft limit to 100000 bytes and the hard limit to 500000 bytes on the quota, rounding up to the filesystem block size.

PARAMETERS

-Cluster

The PowerStore cluster.

Type: Cluster
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FileSystemId

The UUID of the file system to place the file user quota on.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TreeQuotaId

File tree quota ID.

Type: String
Parameter Sets: (All)
Aliases:

Required: false
Position: 
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UID

Unix ID.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-UnixName

Unix name.

Type: String
Parameter Sets: (All)
Aliases:

Required: false
Position: 
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WindowsName

Windows name.

Type: String
Parameter Sets: (All)
Aliases:

Required: false
Position: 
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WindowsSID

Windows SID.

Type: String
Parameter Sets: (All)
Aliases:

Required: false
Position: 
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-HardLimit

Hard limit of the user quota, in bytes. No hard limit when set to 0. This value can be used to compute amount of space that is consumed without limiting the space. Value is always rounded up to match the physical block size of the filesystem.Must be higher than soft limit, and cannot be set to a nonzero value while soft limit is still set to zero.

Type: Long
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SoftLimit

Soft limit of the user quota, in bytes. No soft limit when set to 0. Value is always rounded up to match the physical block size of the filesystem.

Type: Long
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

Dell.PowerStore.Management.Model.FileUserQuota

NOTES