How to integrate custom context menu shortcuts on Windows 11

Context menu custom shortcuts
Context menu custom shortcuts (Image credit: Mauro Huculak)

On Windows 11, you can customize the context menu to add custom shortcuts, and I will show you how in this guide. Although you can make an easy trip to the Start menu to launch an application, search the web, and open a specific feature or setting, as our sister site Tom's Hardware pointed out, it's also possible to modify the right-click context menu through the Registry to access some resources even faster since this specific menu is always one right-click away.

In the past, I have created different guides to add specific entries (such as to access Windows UpdateCommand Prompt, and others) to the right-click context menu. However, in these instructions, I outline the process of creating shortcuts for virtually anything. 

The only caveat is that these instructions only work with the classic version of the context menu, not the modern interface. However, it's easily accessible using the "Shift + Right-click" shortcut.

In this how-to guide, I will explain the changes you have to make to the Registry to add custom shortcuts to the system's context menu on Windows 11.

How to create custom context menu shortcuts on Windows 11

Using the Registry, you can add custom shortcuts to virtually anything on Windows 11. The instructions below will give you some examples of how to add entries to launch apps and features (such as quick access to specific Settings pages) and open particular websites.

Warning: This is a friendly reminder that editing the Registry is risky and can cause irreversible damage to your installation if you don't do it correctly. It's recommended that you create a full backup of your PC before proceeding.

Launch apps shortcut

To create a context menu entry to start an app, use these steps:

  1. Open Start.
  2. Search for Registry and click the top result to open the app.
  3. Open the following path: HKEY_CLASSES_ROOT\Directory\Background\shell
  4. Right-click the Shell (folder) key, select New, and click on Key.

(Image credit: Mauro Huculak)
  1. Confirm a descriptive name (for example, word) and press Enter.
  2. Right-click the "(Default)" String and choose the Modify option.
  3. Confirm the name as you want the shortcut to appear. For example, "Open Microsoft Word. "

(Image credit: Mauro Huculak)
  1. Click the OK button.
  2. Right-click the newly created key (from step 5), select New, and click on Key.

(Image credit: Mauro Huculak)
  1. Click the OK button.
  2. Right-click the newly created key (from step 5), select New, and click on Key.
  3. Name the key command and press Enter.
  4. Select the newly created key (from step 10).
  5. Right-click the "(Default)" String on the right side and choose the Modify option.
  6. Confirm the path to the application launcher (usually the ".exe" file).

(Image credit: Mauro Huculak)
  • Quick note: In this case, I'm using the path to the Microsoft Word app, which is located in "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE"
  1. Click the OK button.

Once you complete the steps, you can "Shift + Right-click" on the desktop or inside of a folder on File Explorer to find the new shortcut.

You can add entries to launch virtually any app. For example, you can use these paths for common applications:

  • Notepad: notepad
  • Microsoft Paint: paint
  • Calculator: calc
  • File Explorer: explorer
  • Clock: clock

You can find the paths of other Office apps in C:\Program Files\Microsoft Office\root\Office16.

Launch features shortcut

To create a context menu to launch a feature, use these steps:

  1. Open Start.
  2. Search for Registry and click the top result to open the app.
  3. Open the following path: HKEY_CLASSES_ROOT\Directory\Background\shell
  4. Right-click the Shell (folder) key, select New, and click on Key.

(Image credit: Mauro Huculak)
  1. Confirm a descriptive name (for example, windowsupdate) and press Enter.
  2. Right-click the "(Default)" String and choose the Modify option.
  3. Confirm the name as you want the shortcut to appear. For example, "Check for Updates."

(Image credit: Mauro Huculak)
  1. Click the OK button.
  2. Right-click the newly created key (from step 5), select New, and click on Key.

(Image credit: Mauro Huculak)
  1. Name the key command and press Enter.
  2. Select the newly created key (from step 10).
  3. Right-click the "(Default)" String on the right side and choose the Modify option.
  4. Confirm the path to launch the feature, for example, explorer ms-settings:windowsupdate

(Image credit: Mauro Huculak)
  1. Click the OK button.

After you complete the steps, the legacy context menu will show the new entry.

Some common places in the Settings app that you may consider adding to the context menu include:

  • Display: ms-settings:easeofaccess-display
  • Network & internet: ms-settings:network-status
  • VPN: ms-settings:network-vpn
  • Start: ms-settings:personalization-start
  • Taskbar: ms-settings:taskbar
  • Themes: ms-settings:themes
  • Power & sleep: ms-settings:powersleep
  • Storage: ms-settings:storagesense

Launch website shortcut 

To add a shortcut to open a website from the context menu, use these steps:

  1. Open Start.
  2. Search for Registry and click the top result to open the app.
  3. Open the following path: HKEY_CLASSES_ROOT\Directory\Background\shell
  4. Right-click the Shell (folder) key, select New, and click on Key.

(Image credit: Mauro Huculak)
  1. Confirm a descriptive name (for example, website) and press Enter.
  2. Right-click the "(Default)" String and choose the Modify option.
  3. Confirm the name as you want the shortcut to appear. For example, "Open Windows Central website."

(Image credit: Mauro Huculak)
  1. Click the OK button.
  2. Right-click the newly created key (from step 5), select New, and click on Key.
  3. Name the key command and press Enter.
  4. Select the newly created key (from step 10).
  5. Right-click the "(Default)" String on the right side and choose the Modify option.
  6. Confirm the path to launch the feature, for example, rundll32.exe url.dll,FileProtocolHandler "microsoft-edge:https://www.windowscentral.com"

(Image credit: Mauro Huculak)
  1. Click the OK button.

Once you complete the steps, you will find the option to launch a specific website when you use the "Shift + Right-click" shortcut to open the classic context on Windows 11.

It's important to note that I'm choosing the "microsoft-edge" handler to open the web page with Microsoft Edge.

(Optional) Add context menu entry icon

If you want to identify the entry with an icon, use these steps:

  1. Open Start.
  2. Search for Registry and click the top result to open the app.
  3. Open the following path: HKEY_CLASSES_ROOT\Directory\Background\shell
  4. Select the key that represents the context menu entry.
  5. Right-click the key (folder) key, select New, and click on String Value.

(Image credit: Mauro Huculak)
  1. Confirm icon as the name for the String.
  2. Click the OK button.
  3. Right-click the "(Default)" String on the right side and choose the Modify option.
  4. Confirm the path of the icon.
  • Quick note: You can use the path to a ".ico" file or one of the legacy icons available through the "%SystemRoot%\System32\shell32.dll" and using the "%SystemRoot%\System32\shell32.dll,ICON-NUMBER" path. Sometimes, the app executable includes one or various icons, and you can use the executable path to add an icon to the entry.

(Image credit: Mauro Huculak)
  1. Click the OK button.

After you complete the steps, the specified icon will appear next to the custom context menu entry.

Get icon index number 

To get the icon number, you will have to use a third-party application, and here's how:

  1. Open NirSoft website.
  2. Click the "Download IconsExtract" option.

(Image credit: Mauro Huculak)
  1. Save the app on your computer.
  2. Select the zip folder and click the Extract all button from the command bar.
  3. Click the Extract button.

(Image credit: Mauro Huculak)
  1. Right-click the iconsext.exe and choose the Open option.
  2. Click the "Search for icons" button.

(Image credit: Mauro Huculak)
  1. Confirm the number of the icon (next to the name).
  2. Append the number to the path in the "icon" String (above on step 9). For example, "%SystemRoot%\System32\shell32.dll,137"

(Image credit: Mauro Huculak)

Once you complete the steps, you will be able to use the system icons to add icons to the custom shortcuts in your context menu.

It's important to note that while testing this configuration, for some reason, the ID numbers for icons were not correct. For example, if I used the ID "17," the system would show the ID "16." If I used the ID 21, then the system would use the ID "20." So, you may need to play around to land on the icon you want.

(Optional) Disable modern context menu

To turn off the modern context menu on Windows 11, use these steps:

  1. Open Start.
  2. Search for Registry and click the top result to open the app.
  3. Open the following path: HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID
  4. Right-click the CLSID key (folder) key, select New, and click on Key.

(Image credit: Mauro Huculak)
  1. Confirm the {86ca1aa0-34aa-4e8b-a509-50c905bae2a2}  name for the key and press Enter.
  2. Right-click the newly created key (folder), select New, and click on Key.

(Image credit: Mauro Huculak)
  1. Confirm the InprocServer32 for the key and press Enter.
  2. Right-click the default String and choose the Modify option.
  3. Click on the "Value data" field and press the space and backspace keys.

(Image credit: Mauro Huculak)
  1. Click the OK button.

After you complete the steps, you will have to restart the computer to have access to the classic menu and the new shortcuts without extra steps.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources: 

Mauro Huculak

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.