SizeDistributionCount

SpaceObServer.Application.Properties.SizeDistributionCount

Description

Returns the number of intervals that are configured for the “Distributions” statistics.

Syntax

property SizeDistributionCount: <Boolean>; (read only)

Example

PowerShell:

$RootDirectoryID = $SOS.RootFolderID
for(($Index = 0); ($Index -lt $SOS.SizeDistributionCount); ($Index++))
{
    $SOS.GetSizeDistributionValue($RootDirectoryID, $Index, $AllocatedSpace, $NumberOfFiles)
    ...
}

VBS:

RootDirectoryID = SOS.RootFolderID
Index = 0
Do While Index < SOS.SizeDistributionCount
    SOS.GetSizeDistributionValue RootDirectoryID, Index, AllocatedSpace, NumberOfFiles
    ...
    Index = Index+1
Loop

Loops over all “Size Distribution” intervals of the currently activated root directory and queries the allocated space and number of files for each single interval.