Set-FsrmAutoQuota
Set-FsrmAutoQuota
Changes configuration settings of an auto apply quota.
Sintaxis
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>]
Descripción detallada
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.
Parámetros
-AsJob
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-CimSession<CimSession[]>
Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.
Alias |
Session |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
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.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-InputObject<CimInstance[]>
Especifica la entrada para este cmdlet. Puede usar este parámetro o puede canalizar la entrada a este cmdlet.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-PassThru
Devuelve un objeto que representa el elemento con el que está trabajando. De forma predeterminada, este cmdlet no genera ningún resultado.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Path<String>
Specifies a valid local path to a folder.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Template<String>
Specifies a name of a quota template on the server.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-ThrottleLimit<Int32>
Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0
, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
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.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
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.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Ejemplos
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