< Back
Set-DiagnosticStoreCapacity
Post
NAME Set-DiagnosticStoreCapacity
SYNOPSIS
Sets the diagnostic store time and size capacity.
SYNTAX
Set-DiagnosticStoreCapacity [[-Size] <uint>] [[-Time] <uint>] [<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.
PARAMETERS
-Size <uint>
Set size capacity of the diagnostic store.
Required? false
Position? 0
Default value 0
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-s <uint>
Set size capacity of the diagnostic store.
This is an alias of the Size parameter.
Required? false
Position? 0
Default value 0
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Time <uint>
Set time capacity of the diagnostic store.
Required? false
Position? 1
Default value 0
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-t <uint>
Set time capacity of the diagnostic store.
This is an alias of the Time parameter.
Required? false
Position? 1
Default value 0
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.UInt32
Set size capacity of the diagnostic store.
System.UInt32
Set time capacity of the diagnostic store.
OUTPUTS
System.String
---------- 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.
RELATED LINKS
SYNOPSIS
Sets the diagnostic store time and size capacity.
SYNTAX
Set-DiagnosticStoreCapacity [[-Size] <uint>] [[-Time] <uint>] [<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.
PARAMETERS
-Size <uint>
Set size capacity of the diagnostic store.
Required? false
Position? 0
Default value 0
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-s <uint>
Set size capacity of the diagnostic store.
This is an alias of the Size parameter.
Required? false
Position? 0
Default value 0
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Time <uint>
Set time capacity of the diagnostic store.
Required? false
Position? 1
Default value 0
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-t <uint>
Set time capacity of the diagnostic store.
This is an alias of the Time parameter.
Required? false
Position? 1
Default value 0
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.UInt32
Set size capacity of the diagnostic store.
System.UInt32
Set time capacity of the diagnostic store.
OUTPUTS
System.String
---------- 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.
RELATED LINKS