CmdID

CmdID / PowerShell / Cmdlets / Optimize

Optimize-Volume

Optimizes a volume. Windows Server PowerShell reference

From the Windows Server PowerShell reference 16 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

16 in the Windows Server PowerShell reference
-AnalyzeAnalyzes the volume specified for fragmentation statistics.
-AsJobRuns the cmdlet as a background job.
-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.
-Confirm, -cfPrompts you for confirmation before running the cmdlet.
-DefragIndicates that the cmdlet initiates defragmentation on the specified volume.
-DriveLetterSpecifies the drive letter of the volume to optimize.
-FileSystemLabelSpecifies the file system label of the volume to optimize.
-InputObjectSpecifies the input object that is used in a pipeline command.
-NormalPriorityIndicates that this cmdlet the operation at normal priority.
-ObjectId, -IdSpecifies the ID of the volume to optimize.
-PathSpecifies the path of the volume to optimize.
-ReTrimGenerates TRIM and Unmap hints for all currently unused sectors of the volume, notifying the underlying storage that the sectors are no longer needed and can be purged.
-SlabConsolidateIndicates that the cmdlet performs slab consolidation on the storage to optimize slab allocations and to reduce the number of used slabs.
-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.
-TierOptimizeIndicates that the cmdlet performs tier optimization of the volume, which places file data on the optimal storage tier according to heat or desired placement.
-WhatIf, -wiShows what would happen if the cmdlet runs.