Optimize Drive - Add to Context Menu in Windows 8

How to Add "Optimize Drive" to Context Menu of Drives in Windows 8 and 8.1

information   Information
Optimize Drives, previously called Disk Defragmenter, helps to optimize the different types of drives that PCs use today. No matter which type of drive your PC uses, Windows automatically chooses the optimization that's right for your drive.

By default, Optimize Drives runsautomatically on a weekly schedule during the time you have set for automatic maintenance. You can also optimize drives on your PC manually any time you like.

This tutorial will show you how to add or remove Optimize Drive from the context menu of all drives to make it easier to defrag a HDD and TRIM a SSD at will in Windows 8 and 8.1.

You must be signed in as an administrator to be able to add/remove and use the "Optimize Drive" context menu.

Note   Note
When you use the Optimize Drive context menu for a drive, it will show you the progress and verbose details of the defrag or TRIM in a command prompt.

The Optimize Drive context menu uses the command below only on the drive you right click or press and hold on in This PC.

defrag /H /O /U /V

/H = Run the operation at normal priority (default is low).

/O = Perform the proper optimization for each media type. This means that Windows will automatically perform a TRIM or ReTrim on a SSD, and only defrag a HDD.

/U = Shows the progress of the operation on the screen in the command prompt.

/V = Shows verbose output containing the fragmentation statistics in the command prompt.

EXAMPLE: Optimize Drive context menu

EXAMPLE: Defrag (HDD) and TRIM (SSD) progress and verbose details

Here's How:

1. Do step 2 or 3 below for what you would like to do.

2. Add "Optimize Drive" to Context Menu of Drives
A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

3. To Remove "Optimize Drive" from Context Menu of Drives
NOTE: This is the default setting.
A) Click/tap on the Download button below to download the file below, and go to step 4 below.​

4. Save the REG file to your desktop.

5. Double click/tap on the downloaded REG file to merge it.

6. Click/tap on Run, Yes (UAC), Yes, and OK when prompted to approve the merge.

7. When finished, you can delete the downloaded .reg file if you like.

That's it,



  • Remove_Optimize_Drive_from_Context_Menu.reg
    502 bytes · Views: 623
  • Add_Optimize_Drive_to_Context_Menu.reg
    876 bytes · Views: 750
  • Disk_Defragmenter.png
    13.2 KB · Views: 255
Last edited: