< Back

Set-NfUserQuota

Sat Jan 18, 2020 5:12 pm

NAME Set-NfUserQuota



SYNOPSIS

Sets a user quota for the given filesystem





SYNTAX

Set-NfUserQuota [-Path] <String> [-User] <String> [-Quota] <String> [-NoWait] [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

Sets a user quota for the given filesystem





PARAMETERS

-Path <String>



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-User <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-UserQuota -Path p1/top1 -User "6565" -Quota 1Gb



True



Sets a quota for a unix uid









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



PS C:\\>Set-UserQuota -Path p1/top1 -User "S-1-5-21-1643737365-1170899993-312552118-56130" -Quota 1Gb



True



Sets a quota for an active directory user









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



PS C:\\>(Get-aduser user1).sid | Set-UserQuota p1/collab1 -Quota 500Mb



True



Pipe the sid of an AD account into the cmdlet











RELATED LINKS