Posted by & filed under Windows / Server.

I find adding common tasks to the shell menu a great timesaver when I am running between stations. It is also easier to direct users to simply “right-click” on something rather than walk them through a maze of menus…or even have them find the “run” box.

  1. Click Start -> type “regedit” in the Search command box.
  2. Navigate to HKEY_CLASSES_ROOT\Drive\shell.
  3. Right-click on “shell” and select New -> Key. Name it “runas” and set the default value to “Defragment”.
  4. Right-click on “runas” and select New -> Key. Name it “command” and set the default value to “defrag %1 -v“.
  5. If you ever wish to remove this functionality, just delete the “runas” key.

 

Add Defrag to the shell menu registry edit

 

You can also paste the following into Notepad and save it as: RightClickDefragment.reg or you can download the zippedĀ RightClickDefragment.reg here. Double-click on the .reg file and click “yes” when asked to enter it into the registry.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\runas]
@=”Defragment”

[HKEY_CLASSES_ROOT\Drive\shell\runas\command]
@=”defrag %1 -v”

 

Defragment Command Screen

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>