Block Context Menu Handlers Using Regedit
Over time, third-party software installations can clutter the Windows right-click context menu, causing visual noise and slower menu load times. This guide explains how to clean up your context menu by blocking or removing specific third-party context menu handlers directly using the Windows Registry Editor (Regedit).
Step 1: Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog. - Type
regeditand press Enter. - Click Yes when prompted by User Account Control (UAC).
(Note: It is recommended to create a restore point or back up your registry before making modifications.)
Step 2: Navigate to Context Menu Handler Locations
Third-party context menu extensions are registered under several primary keys depending on where they appear. Navigate to the appropriate location using the address bar:
- For general files:
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers - For folders and directories:
HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers - For the desktop and folder background:
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers - For all filesystem objects:
HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers
Step 3: Identify the Third-Party Handler
Expand the target ContextMenuHandlers key in the left
pane. You will see subkeys named after the software that created them
(such as 7-Zip, Dropbox, Notepad++, or WinRAR) or named with a unique
Class ID (CLSID) string in the format
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}.
If the key name is a CLSID, click on the key and check the (Default) value in the right pane to see the name of the associated application.
Step 4: Block or Disable the Handler
You can disable the context menu entry using one of two methods:
Method A: Rename or Delete the Registry Key
- In the left pane, right-click the subkey for the handler you want to disable.
- To completely remove it, select Delete and confirm.
- Alternatively, to disable it temporarily without deleting it, select
Rename and add a minus sign (
-) to the beginning of the key name (e.g.,-7-Zip).
Method B: Block the Handler via the Shell Extensions “Blocked” Key
To prevent a specific handler from loading without modifying its root
entry: 1. Double-click the target handler’s subkey and copy its CLSID
value (e.g., {00000000-0000-0000-0000-000000000000}). 2.
Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked
3. If the Blocked key does not exist, right-click
Shell Extensions, select New > Key, and
name it Blocked. 4. Right-click in the right pane of
Blocked, select New > String Value. 5.
Paste the copied CLSID as the name of the new string value. Leave the
value data blank.
Step 5: Restart Windows Explorer
To apply the changes without restarting your computer:
- Press
Ctrl + Shift + Escto open Task Manager. - Locate Windows Explorer in the Processes tab.
- Right-click it and select Restart.
The disabled third-party items will no longer appear in your right-click context menu.