Tuesday, March 29, 2016

Perform defrag in Windows 10 SSD or HDD

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:

ValueDescription
/APerform analysis on the specified volumes.
/BPerform boot optimization to defrags the boot sector of the boot volume. This will not work on a SSD.
/CPerform the operation on all volumes.
/DPerform traditional defrag (this is the default).
/EPerform the operation on all volumes except those specified.
/HRun the operation at normal priority (default is low).
/I nTier optimization would run for at most n seconds on each volume.
/KPerform slab consolidation on the specified volumes.
/LPerform 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.
/OPerform the proper optimization for each media type.
/TTrack an operation already in progress on the specified volume.
/UPrint the progress of the operation on the screen.
/VPrint verbose output containing the fragmentation statistics.
/XPerform 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   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: