How to Add Windows 11 Context Menu Items

How to Add Windows 11 Context Menu Items

Adding your own items to the Windows 11 right-click menu lets you launch apps, scripts, or shortcuts from anywhere with a single click. This guide shows you how to add context menu entries safely using the Registry, plus how to deal with the new Windows 11 menu design.

Understanding the Windows 11 Context Menu

Windows 11 introduced a simplified context menu that hides many legacy entries behind Show more options (or Shift + F10). Custom items you add through the classic Registry method appear in that expanded “more options” menu, not the new compact one. Adding entries to the modern top-level menu requires building an MSIX package with an IExplorerCommand handler, which is far more involved, so most users target the classic menu.

Warning: Editing the Registry incorrectly can cause system problems. Before you start, open regedit, select File > Export, and back up the keys you plan to change.

Add an Item to the Desktop and Folder Background Menu

The background menu appears when you right-click empty space inside a folder or on the desktop. The relevant key is HKEY_CLASSES_ROOT\Directory\Background\shell.

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_CLASSES_ROOT\Directory\Background\shell.
  3. Right-click shell and choose New > Key. Name it after your command, for example Open Notepad. The key name becomes the menu text.
  4. Select your new key and create a subkey called command.
  5. Click the command subkey, double-click (Default), and set the value to the program path, for example notepad.exe or "C:\Program Files\App\app.exe".

Right-click the desktop and you will see your new entry under Show more options immediately, no reboot required.

Add an Item When Right-Clicking Files or Folders

To target specific contexts, use these keys:

  • Any file: HKEY_CLASSES_ROOT\*\shell
  • Folders (the folder icon itself): HKEY_CLASSES_ROOT\Directory\shell
  • Drives: HKEY_CLASSES_ROOT\Drive\shell

The structure is identical: create a named key, add a command subkey, and set its default value. To pass the clicked item to your program, append "%1" to the command, for example "C:\Tools\converter.exe" "%1". The %1 placeholder is replaced with the full path of the selected file.

Add an icon and tidy the label

On your command’s parent key, create a string value named Icon and point it to an executable or .ico file, such as notepad.exe. To add a keyboard accelerator, put an ampersand before a letter in the key name, like &Open Notepad.

Useful Extras: Submenus and Conditions

You can group several commands under one parent entry. On your top-level key, add a string value named SubCommands and a string value named MUIVerb for the display text, then define each child command under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell.

To hide an item unless Shift is held, add a string value named Extended (leave it empty) on the command’s parent key. To run a command elevated, that requires a custom handler; a simpler approach is to point the command at a shortcut configured to run as administrator.

Removing or Editing Your Entries

To remove a custom item, delete the named key you created (and its command subkey). To rename the menu text, rename the key. If you want to restore the legacy full menu as the default in Windows 11, you can add the well-known empty key:

  1. Navigate to HKEY_CURRENT_USER\Software\Classes\CLSID.
  2. Create the key {86ca1aa0-34aa-4e8b-a509-50c905bae2a2}, then a subkey InprocServer32, and leave its default value empty.
  3. Restart Explorer or sign out and back in.

Frequently Asked Questions

Why doesn’t my custom item show in the main right-click menu?

Registry-based entries appear under “Show more options” in Windows 11, not the compact menu. Press Shift + F10 or click “Show more options” to see them. Putting items in the modern menu requires a packaged IExplorerCommand extension.

Do I need to restart after editing the Registry?

No. Context menu changes take effect immediately. If an entry does not appear, restart Windows Explorer from Task Manager to refresh the shell.

Is editing the Registry safe?

It is safe if you only touch the keys described and back them up first via File > Export. Avoid deleting unrelated keys, and never run untrusted .reg files.

Can I add a context menu item without the Registry?

Yes, free utilities like the “Easy Context Menu” or “ShellMenuView” provide a graphical interface that writes the same Registry entries for you, which is safer for beginners.

Similar Posts