< Back

Get-DiagnosticStoreCapacity

Sat Jan 18, 2020 11:38 am

NAME Get-DiagnosticStoreCapacity



SYNOPSIS

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 <SwitchParameter>] [-Time <SwitchParameter>] [<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.





PARAMETERS

-Size <SwitchParameter>

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



Required? false

Position? named

Default value False

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-s <SwitchParameter>

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



This is an alias of the Size parameter.



Required? false

Position? named

Default value False

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-Time <SwitchParameter>

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



Required? false

Position? named

Default value False

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-t <SwitchParameter>

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



This is an alias of the Time parameter.



Required? false

Position? named

Default value False

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.Management.Automation.SwitchParameter

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



System.Management.Automation.SwitchParameter

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





OUTPUTS

System.String





---------- 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.



RELATED LINKS