defragment hard drive disk defgrag context menu right click this pc easy tutorial

How to Add “Defragment” in Drive Context Menu on Windows 10

Published by Soufiane | Categories : Computers - Tips & Tricks - Computers - Windows 10

Do you want to defragment your disks faster?

As you know everyone should defragment their hard drives at least once a week.

This task is done automatically in Windows 10 weekly, but if you want to do it manually it can be a little complicated.

In this tutorial, you will learn a registry hack to add “Defragment” to the right-click menu on the “This PC” window.

Let’s go!

Defragment Your Hard Disks from the Context Menu on “This PC”

Open the Run prompt using the Windows+R keyboard shortcut, type in regedit, hit Enter.

defragment hard drive disk defgrag context menu right click this pc 1 run regedit

Navigate to this path:

HKEY_CLASSES_ROOT\Drive\shell

Right-click on shell and choose “New” > “Key“. Name the newly created key Defragment.

defragment hard drive disk defgrag context menu right click this pc 2 shell new key

Click on the “Defragment” key you created and create a new String Value named icon with the value defrag.exe.

defragment hard drive disk defgrag context menu right click this pc 3 icon defrag exe string value registry editor

Right-click on the “Defragment” key and choose “New” > “Key“. Name the new key command.

defragment hard drive disk defgrag context menu right click this pc 4 new key

Change the value of the (Default) value under the key command to dfrgui.exe.

defragment hard drive disk defgrag context menu right click this pc 5 dfrgui exe edit string registry editor

Now open your Windows Explorer, right-click on your C: drive, you should see a “Defragment” item.

defragment context menu right click this pc windows 10

All you have to do now is to click “Optimize“.

defragment hard drive disk defgrag context menu right click this pc 6 optimize drives

Bonus Tip: Defragment a Drive from Command Prompt

Here is a bonus command to defragment any hard drive using the age-old Command Prompt:

defrag C: /O
defragment hard drive disk defgrag context menu right click this pc 7 command prompt cmd c

Now that you know how to optimize and defragment your hard drives using the right-click menu, it’s time to discover other useful & easy tutorials on easytutorial.com ;)

If you have any questions about Windows 10 or defrag please leave a comment below.


Related tutorials:


Be the first to leave a comment !

Leave a comment

xD oO ^_^ =] =) ;-( ;) :| :woot: :whistle: :sleep: :sick: :police: :p :o :ninja: :mm: :love: :lol: :kiss: :hmm: :evil: :bandit: :angel: :alien: :D :) :( 8)