Advertisements

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!

Advertisements

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.

Soufiane – Easytutorial.com

Advertisements