Measure-WssFolder
Measure-WssFolder
Calculates the size of a given server folder.
Sintaxis
Parameter Set: Default
Measure-WssFolder [-Folder] <Folder> [ <CommonParameters>]
Descripción detallada
The Measure-WssFolder cmdlet calculates the size of a given server folder.
Parámetros
-Folder<Folder>
Specifies the folder to calculate the size of.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿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.
Microsoft.WindowsServerSolutions.Storage.CalculateFolderSizeRequest
This cmdlet generates the CalculateFolderSizeRequest object which can be used to calculate the size of a server folder.
Ejemplos
Example 1: Calculate the size of a server folder
The first command gets the folder named Projects01, and stores the folder in the $Pfolder variable. The second command calculates the size of the server folder stored in $Pfolder.
PS C:\> $Pfolder = Get-WssFolder -Name "Projects01"
Measure-WssFolder -Folder $Pfolder