1 300 737 205

How to add ‘Defragment’ to the Context Menu for a Drive

Navigate to Start, type regedit in the search box and press enter.

Defragment-regedit

Scroll down to the following key:

HKEY_CLASSES_ROOT\Drive\shell

Right click shell and select New – Key from the drop down list.

defrag-new-key-runas

Name the new key runas.

defrag-new-key-runas_001

Double click on the (default) value in the right hand pane and enter in the following:

Defragment

defrag-runas-default-value-defragment

Create another new key called Command in the right hand pane of runas.

defrag-new-key-Command

Double click on the (default) value in Command and enter in the following:

defrag %1 -v

defrag-default-value-command-defrag1v

Note: This command runs defrag with the default options but shows verbose output.

defrag-drive-context-menu-success

Done!

 

Request Your Free Consultation Today

We’ll come to your place of business, and give you a full diagnostic snapshot of your IT systems.