http://www.tenforums.com/tutorials/8933-optimize-defrag-drives-windows-10-a.html
in the command prompt, type the command you want to use below, and press Enter.
Commonly Used Commands:
defrag C: /ONOTE: Substitute C: in the command with the drive letter you want instead.
defrag /C /ONOTE: For all HDDs and SSDs.
Syntax:defrag
| /C | /E [] [/H] [/M [n] | [/U] [/V]] [/I n]
Where is omitted (traditional defrag), or as follows: /A | [/D] [/K] [/L] | /O | /X
Or, to track an operation already in progress on a volume: defrag /T
Parameters:
Value | Description |
/A | Perform analysis on the specified volumes. |
/B | Perform boot optimization to defrags the boot sector of the boot volume. This will not work on a SSD. |
/C | Perform the operation on all volumes. |
/D | Perform traditional defrag (this is the default). |
/E | Perform the operation on all volumes except those specified. |
/H | Run the operation at normal priority (default is low). |
/I n | Tier optimization would run for at most n seconds on each volume. |
/K | Perform slab consolidation on the specified volumes. |
/L | Perform retrim on the specified volumes. Only for a SSD. |
/M [n] | Run the operation on each volume in parallel in the background. At most n threads optimize the storage tiers in parallel. |
/O | Perform the proper optimization for each media type. |
/T | Track an operation already in progress on the specified volume. |
/U | Print the progress of the operation on the screen. |
/V | Print verbose output containing the fragmentation statistics. |
/X | Perform free space consolidation on the specified volumes. |
To Analyze Current Optimization of Drive
A) Type the command below into PowerShell, press Enter, and go to
step 7 below.
Optimize-Volume -DriveLetter -Analyze –Verbose

Note
Analyzes the volume specified for fragmentation statistics. Performs analysis only and reports the current optimization state of the volume.
Substitute in the command above with the actual drive letter you want to analyze.
For example: Optimize-Volume -DriveLetter C -Analyze -Verbose
No comments:
Post a Comment