Step 1: Open Registry Editor
Press the Windows key + R to open the Run dialog box. Type “regedit” and hit Enter to launch the Registry Editor.
In the Registry Editor, navigate to the following key: HKEY_CLASSES_ROOT\Drive\shell
Step 3: Create a New Key
Right-click on the “shell” key and select New > Key. Name the new key “Disk Cleanup.”
Step 4: Create a New Key for Command
Right-click on the “Disk Cleanup” key and select New > Key. Name the new key “command.”
Step 5: Modify the Default Value
Select the “command” key, and then double-click on the (Default) value in the right pane. In the “Edit String” dialog box, type the following command: %SystemRoot%\System32\cleanmgr.exe /d %1
Step 6: Add an Icon (Optional)
Right-click on the “Disk Cleanup” key and select New > String Value. Name the new value “Icon.” Double-click on the “Icon” value and enter the following path: %SystemRoot%\system32\imageres.dll,-72
Step 7: Test the Context Menu
Close the Registry Editor and open File Explorer. Right-click on any drive, and you should see “Disk Cleanup” in the context menu. Click on it to open Disk Cleanup.
FAQs
Yes. Simply go back to the Registry Editor, navigate to the “Disk Cleanup” key, and delete it.
No. Adding Disk Cleanup to the context menu will not affect your computer’s performance.
Yes. You can follow the same steps to add other tools to the context menu.
Is it safe to modify the registry?
Yes, as long as you follow the instructions carefully. However, it’s always a good idea to back up the registry before making any changes.
Double-check that you followed all the steps correctly. If you still don’t see the option, try restarting your computer.
Adding Disk Cleanup to the context menu is a simple way to free up space on your computer without having to go through multiple steps. By following these steps, you can easily access Disk Cleanup whenever you need it.