Modifier

Partager via


Set-DiagnosticStoreCapacity

Sets the diagnostic store time and size capacity.

Syntax

Set-DiagnosticStoreCapacity
   [[-Size] <UInt32>]
   [[-Time] <UInt32>]
   [<CommonParameters>]

Description

This cmdlet sets the maximum amount of Diagnostic Data history (by time and by size) that can be shown through this tool. The size cap is measured in megabytes, and the time cap is measured in days. Once the either cap is reached (whichever comes first), diagnostic data history is removed based on a first in first out order.

Examples

EXAMPLE 1

Set-DiagnosticStoreCapacity -Size 1024

Set store capacity (megabytes) of the diagnostic store.

EXAMPLE 2

Set-DiagnosticStoreCapacity -Time 24

Set time capacity (hours) of the diagnostic store.

EXAMPLE 3

Set-DiagnosticStoreCapacity -Size 1024 -Time 24

Set store capacity (megabytes) and time capacity (hours) of the diagnostic store at the same time.

Parameters

-Size

Set size capacity of the diagnostic store.

Type:UInt32
Aliases:s
Position:0
Default value:0
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Time

Set time capacity of the diagnostic store.

Type:UInt32
Aliases:t
Position:1
Default value:0
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

UInt32

Set size capacity of the diagnostic store.

UInt32

Set time capacity of the diagnostic store.

Outputs

String

Notes

Requires Windows 10 version 17134 (1803) or higher