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
Set size capacity of the diagnostic store.
Set time capacity of the diagnostic store.
Outputs
Notes
Requires Windows 10 version 17134 (1803) or higher
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應