< Back

Set-NsGroupQuota

Sat Jan 18, 2020 5:15 pm

NAME Set-NsGroupQuota



SYNOPSIS

Sets a group quota for the given filesystem





SYNTAX

Set-NsGroupQuota [-Path] <String> [-Group] <String> [-Quota] <String> [-NoWait] [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Sets a group quota for the given filesystem





PARAMETERS

-Path <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Group <String>



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Quota <String>



Required? true

Position? 3

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-NoWait [<SwitchParameter>]

Invoke to make the cmdlet start the job and return the GUID of the JobID



Required? false

Position? named

Default value False

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

True if the quota as set correctly





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-GroupQuota -Path p1/top1 -Group "6525" -Quota 1Gb



True



Sets a quota for a unix gid









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-GroupQuota -Path p1/top1 -Group "S-1-5-21-1643337385113899993-312552118-56130" -Quota 1Gb



True



Sets a quota for an active directory group









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>(Get-adgroup group1).sid | Set-GroupQuota p1/collab1 -Quota 500Mb



True



Pipe the sid of an AD group into the cmdlet











RELATED LINKS