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: /O
NOTE: Substitute C: in the command with the drive letter you want instead.
defrag /C /O
NOTE: 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:
in the command prompt, type the command you want to use below, and press Enter.
Commonly Used Commands:
NOTE: Substitute C: in the command with the drive letter you want instead.
NOTE: For all HDDs and SSDs.
Syntax:
defrag
Where
Or, to track an operation already in progress on a volume: defrag
Parameters: