Edit

Share via


Get-DiagnosticStoreCapacity

Fetches the current diagnostic store capacity. Parameter [-Size] returns the diagnostic store size capacity in megabytes. Parameter [-Time] returns the diagnostic store capacity in days. The default diagnostic data store size capacity is 1024 MB. The default time capacity is 30 days.

Syntax

Default (Default)

Get-DiagnosticStoreCapacity
    [-Size]
    [-Time]
    [<CommonParameters>]

Description

The amount of Diagnostic Data history that can be shown through this tool is capped based on time in days and size in megabytes. Once either cap is reached (whichever comes first), diagnostic data is removed based on a first in first out order. For example, if the size cap is 1GB and the time cap is 30 days, then once the diagnostic data store has reached 1GB of history or the oldest record is 30 days old (whichever comes first), the oldest seen event is dropped.

Examples

EXAMPLE 1

Get-DiagnosticStoreCapacity -Size

Get configured size capacity (megabytes) of the Diagnostic store.

EXAMPLE 2

Get-DiagnosticStoreCapacity -Time

Get configured time capacity (hours) of the Diagnostic store.

Parameters

-Size

Get configured size capacity (megabytes) of the Diagnostic store.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:s

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Time

Get configured time capacity (hours) of the Diagnostic store.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:t

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

SwitchParameter

Get configured size capacity (megabytes) of the Diagnostic store.

SwitchParameter

Get configured time capacity (hours) of the Diagnostic store.

Outputs

String

Notes

Requires Windows 10 version 17134 (1803) or higher