Set-FsrmAutoQuota
Set-FsrmAutoQuota
Changes configuration settings of an auto apply quota.
Syntax
Parameter Set: Query (cdxml)
Set-FsrmAutoQuota [-Path] <String> [-AsJob] [-CimSession <CimSession[]> ] [-Disabled] [-PassThru] [-Template <String> ] [-ThrottleLimit <Int32> ] [-UpdateDerived] [-UpdateDerivedMatching] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: InputObject (cdxml)
Set-FsrmAutoQuota -InputObject <CimInstance[]> [-AsJob] [-CimSession <CimSession[]> ] [-Disabled] [-PassThru] [-Template <String> ] [-ThrottleLimit <Int32> ] [-UpdateDerived] [-UpdateDerivedMatching] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Set-FsrmAutoQuota cmdlet changes configuration settings of an auto apply quota. If you want to keep the existing quotas unchanged but make the modified auto apply quota effective for new subfolders in the auto apply quota path, do not specify either the UpdateDerived or UpdateDerivedMatching parameters.
When you make changes to an auto apply quota, you have the option of extending those changes to existing quotas in the auto apply quota path. You can specify the UpdateDerivedMatching parameter to modify only those quotas that still match the original auto apply quota, or you can specify the UpdateDerived parameter to modify all quotas in the auto apply quota path, regardless of any modifications that you made to the quotas since you created them.
Parameters
-AsJob
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-CimSession<CimSession[]>
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Aliases |
Session |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Disabled
Indicates that the auto apply quota is inactive. The server does not track quota data for the quota and does not run any action associated with quota thresholds.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-InputObject<CimInstance[]>
Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-PassThru
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Path<String>
Specifies a valid local path to a folder.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
true |
-Template<String>
Specifies a name of a quota template on the server.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ThrottleLimit<Int32>
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0
is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-UpdateDerived
Indicates that the server modifies all existing quotas in the auto apply quota path.
If you specify this parameter, you cannot specify the UpdateDerivedMatching parameter.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-UpdateDerivedMatching
Indicates that the server updates only the quotas in the auto apply quota path that have not been modified since they were automatically generated. Specify this parameter if you have quotas that have been modified since they were automatically generated, and you do not want to change them.
If you specify this parameter, you cannot specify the UpdateDerived parameter.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- Microsoft.Management.Infrastructure.CimInstance#MSFT_FSRMAutoQuota
Examples
Example 1: Set the template for an auto apply quota
This command sets the template named "200 MB Limit Reports to User" for the auto apply quota on the folder named C:\Shares\CtrShare01.
PS C:\> Set-FsrmAutoQuota -Path "C:\Shares\CtrShare01" -Template "200 MB Limit Reports to User"
Example 2: Set the template for all quotas
This command sets the template named "200 MB Limit Reports to User" for all existing quotas in the auto apply quota path named C:\Shares\CtrShare01.
PS C:\> Set-FsrmAutoQuota -Path "C:\Shares\CtrShare01" -Template "200 MB Limit Reports to User" –UpdateDerived
Example 3: Set the template for unmodified quotas
This command sets the template named 200 MB Limit Reports to User for only the quotas in the auto apply quota path named C:\Shares\CtrShare01 that have not been modified since they were automatically generated.
PS C:\> Set-FsrmAutoQuota -Path "C:\Shares\CtrShare01" -Template "200 MB Limit Reports to User" –UpdateDerivedMatching