Navigate to Start, type regedit in the search box and press enter.
Scroll down to the following key:
HKEY_CLASSES_ROOT\Drive\shell
Right click shell and select New – Key from the drop down list.
Name the new key runas.
Double click on the (default) value in the right hand pane and enter in the following:
Defragment
Create another new key called Command in the right hand pane of runas.
Double click on the (default) value in Command and enter in the following:
defrag %1 -v
Note: This command runs defrag with the default options but shows verbose output.
Done!