Registry Location for Background Context Menu Verbs
When you right-click on an empty space inside a folder window or on
the Windows Desktop, the operating system generates a context menu
populated by registered system shell verbs. This guide outlines the
exact registry paths within the Windows Registry Editor
(regedit.exe) where these background-specific shell verbs
and handlers are cataloged, organized by static commands and dynamic COM
extensions for both standard directory backgrounds and the desktop.
Primary Registry Paths for Directory Backgrounds
For standard folders in File Explorer, the verbs that appear when clicking the empty background space are cataloged under the following registry keys:
Static Shell Verbs:
HKEY_CLASSES_ROOT\Directory\Background\shell
This key stores static command verbs (such as user-created shortcuts or native options like “Open in Terminal”). Each subkey represents a visible menu entry, which contains a nestedcommandkey specifying the executable path and parameters.Dynamic Shell Extensions:
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers
This key contains dynamic verbs registered by third-party applications or system components using COM CLSIDs (Class IDs) to build context menu items programmatically.
Primary Registry Paths for Desktop Backgrounds
The Windows Desktop uses specialized keys in addition to inheriting properties from the general directory background:
Desktop Static Verbs:
HKEY_CLASSES_ROOT\DesktopBackground\shell
Contains static items dedicated exclusively to the desktop background, such as “Display settings” and “Personalize”.Desktop Dynamic Handlers:
HKEY_CLASSES_ROOT\DesktopBackground\shellex\ContextMenuHandlers
Contains dynamic shell extensions targeting the desktop specifically (for example, graphics card control panels like NVIDIA or Intel).
Scope and User-Specific Locations
HKEY_CLASSES_ROOT is a merged view of machine-wide and
user-specific settings. If you are configuring verbs for specific
deployment scopes, the direct registry targets are:
System-Wide (All Users):
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\shellCurrent User Only:
HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell
HKEY_CURRENT_USER\Software\Classes\DesktopBackground\shell
Structure of a Shell Verb Entry
To register a standard static verb under any of the
\shell keys:
- Create a new subkey under
...\shell\with your desired internal verb name (e.g.,CustomTool). - Set the
(Default)string value of the key to the text that should appear in the context menu. - Add an optional string value named
Iconpointing to an.icoor.exefile to display an icon. - Create a child subkey named
command. - Set the
(Default)value of thecommandkey to the command line string executed when selected (e.g.,"C:\Path\To\App.exe" "%V").