CmdID / PowerShell / Cmdlets / Set
Set-DiagnosticStoreCapacity
Sets the diagnostic store time and size capacity. Windows Server PowerShell reference
From the Windows Server PowerShell reference 2 parameters Its page in the reference
Parameters
-Size, -sSet size capacity of the diagnostic store.-Time, -tSet time capacity of the diagnostic store.