편집

다음을 통해 공유


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

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.

Type:SwitchParameter
Aliases:s
Position:Named
Default value:False
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Time

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

Type:SwitchParameter
Aliases:t
Position:Named
Default value:False
Required:False
Accept pipeline input:True
Accept wildcard characters:False

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