Measure-WssFolder
Calculates the size of a given server folder.
Syntax
Measure-WssFolder
[-Folder] <Folder>
[<CommonParameters>]
Description
The Measure-WssFolder cmdlet calculates the size of a given server folder.
Examples
Example 1: Calculate the size of a server folder
PS C:\> $Pfolder = Get-WssFolder -Name "Projects01"
Measure-WssFolder -Folder $Pfolder
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.
Parameters
-Folder
Specifies the folder to calculate the size of.
Type: | Folder |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Outputs
Microsoft.WindowsServerSolutions.Storage.CalculateFolderSizeRequest
This cmdlet generates the CalculateFolderSizeRequest object which can be used to calculate the size of a server folder.