Desktop Background Context Menu Registry Locations
This article details the exact Windows Registry (Regedit) paths where shell context menu extensions for the desktop and folder backgrounds are cataloged. When you right-click on an empty space on the desktop or within a directory, Windows queries specific registry keys to populate both static commands and dynamic shell extension handlers. Understanding these paths allows administrators and power users to customize, add, or troubleshoot items appearing in the background context menu.
Primary Registry Paths for Background Shell Extensions
Dynamic shell extension handlers for the desktop and folder
backgrounds are registered using GUIDs (Globally Unique Identifiers)
under the shellex\ContextMenuHandlers subkeys.
Desktop-Specific Extensions:
HKEY_CLASSES_ROOT\DesktopBackground\ShellEx\ContextMenuHandlers
This key manages shell extensions that specifically target the Windows Desktop background surface (such as display driver panels like NVIDIA Control Panel or Intel Graphics Settings).
Directory Background Extensions (Shared with Desktop):
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers
Because the desktop behaves as a directory background, handlers cataloged here frequently appear on both File Explorer folder backgrounds and the desktop itself.
User-Specific vs. System-Wide Locations
HKEY_CLASSES_ROOT is a merged view of machine-wide and
current-user settings. For targeted troubleshooting or deployment, you
can access the underlying keys directly:
- Current User Only:
HKEY_CURRENT_USER\Software\Classes\DesktopBackground\ShellEx\ContextMenuHandlersHKEY_CURRENT_USER\Software\Classes\Directory\Background\shellex\ContextMenuHandlers
- System-Wide (All Users):
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\DesktopBackground\ShellEx\ContextMenuHandlersHKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shellex\ContextMenuHandlers
Static Context Menu Entries
If an entry does not use a dynamic COM object (ShellEx)
but instead runs a fixed executable command, it is cataloged under the
standard shell keys:
HKEY_CLASSES_ROOT\DesktopBackground\shellHKEY_CLASSES_ROOT\Directory\Background\shell
Under these keys, each subkey represents the display name or action
identifier of the context menu item, containing a command
subkey with the path to the executable to be launched.