how to add Disk Cleanup to the context menu for a drive With a simple registry.
Open up regedit.exe through the start menu search or run box, and then browse down to the following key:
Create a new key under shell called “runas”, and then set the (Default) value to “Defragment”. If you want to hide this menu item behind the Shift key right-click menu, then add a new string called Extended with no value.
Next, you’ll need to create a key called “command” and set the default value to the following, which is the command to run defrag with the default options but show verbose output.
defrag %1 -v