Add any Ribbon Command to Context Menu in Windows 10

You can add any Ribbon command to the right click menu in Windows 10. It is not a complicated trick, but involves Registry editing. Using the instructions below, you will be able to add any Ribbon command to the context menu of File Explorer.

It is a good idea to add some Ribbon commands to the context menu. Once you put your frequently used Ribbon commands to the context menu of File Explorer, you need not go through the various Ribbon tabs to find the command you need.

Add any Ribbon Command to Right Click menu in Windows 10

In Windows 10, all of the Ribbon commands are stored in the Registry under one single key for Explorer called "CommandStore". To access the Command Store, open Registry Editor and go to the following key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell

After expanding this key, you will see multiple subkeys which all correspond to the numerous Ribbon commands.

Ribbon Commands in Registry in Windows 10 So, you need to do the following.

In Registry Editor, assuming you have navigated to the ...\CommandStore\shell registry key mentioned above, select the Registry subkey of any command that you want to add to the right-click menu.

For example, let's suppose I want to add the "Permanently delete" command to the right click menu. Therefore, I will have to select the Windows.PermanentDelete Registry subkey.

Ribbon Command Delete Permanently in Registry in Windows 10

Right click this key and select Export. Give the file any name and save it. For example, "Delete permanently to context menu.reg". Add Delete Permanently to Context Menu in Windows 10

Now you need to determine the Registry key in the HKCR branch for which file type's context menu you wish to add this command. You can add it only for a particular file type, or you can add it for all file types, or even all folders and all file system objects.

In case of our command "Delete Permanently", it makes sense to add this to the HKCR\*\shell key of the registry as it is applicable to all file types. We want to be able to quickly copy the path of any file type. Therefore, the command we exported needs to be added to HKCR\* key.

Regsitry Key for All Files Note: You must change this as required. For example, if you want to add a Ribbon command you exported to only the context menu of folders, you would have to add it to the HKCR\Directory\shell subkey. If you wish to add a command such as "Manage Library" to the context menu, it makes sense to add it only for Libraries, therefore you will have to add it to the HKCR\LibraryFolder key and so on. You get the idea - you need to add it for the appropriate file type.

Now, locate the file you exported. Go to the location where you saved it in File Explorer and open it in Notepad by right clicking the .reg file and choosing Open with -> Notepad. The contents of the Ribbon command I exported look like this:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.PermanentDelete]
"CommandStateSync"=""
"ExplorerCommandHandler"="{E9571AB2-AD92-4ec6-8924-4E5AD33790F5}"
"Icon"="shell32.dll,-240"

Export Ribbon Command to a File

You only need to replace the key path portion of text with HKCR\*\shell (or whatever HKCR subkey for the file type you want to merge it to).

So replace/change the following text:
From

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\Windows.PermanentDelete]

To

[HKEY_CLASSES_ROOT\*\shell\Windows.PermanentDelete]

See the following screenshot:

Edit Ribbon Command File

The rest of the .reg file contents need to be unchanged. Simply save the changes to the .reg file, close Notepad and double click the .reg file to merge it along with the modified path back to the Registry.

Import Ribbon Command to Registry - UAC confirmation Registry Impot Confirmation That's it. After merging the command, try right clicking on the correct file type (any file type will do in case of *). Registry File Imported Successfully You will notice the command you just added.

You can save your time and add any Ribbon command to the context menu using Winaero's Context Menu Tuner. It has an easy-to-use interface and will allow you to add any command you want.

Add Any Ribbon Command to Context Menu in Windows 10

Tip: The Ribbon takes a huge amount of vertical space, so once you have added the command to the context menu, you can keep the Ribbon minimized or disable it entirely with our Ribbon Disabler.

The same can be done in Windows 8 and Windows 8.1.

4 thoughts on “Add any Ribbon Command to Context Menu in Windows 10

  1. Gordon Hay

    I do find your registry tweaks interesting and informative Sergey, but in the example you’ve chosen isn’t using Shift+D much simpler?

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. Sergey Tkachenko Post author

      I used the command just for example. You can add anything you want. Something like Advanced Security is a good choice.

      Like or Dislike: Thumb up 0 Thumb down 0

      Reply
      1. Gordon Hay

        Thanks, that is one to consider. I use the Quick Access Toolbar with all the main options pinned so rarely need the tabs, but I think it will be useful to add ‘copy path’ and ‘layout options’ to the context menu too so will use your guide to do that. Thanks again.

        Like or Dislike: Thumb up 0 Thumb down 0

        Reply
        1. Sergey Tkachenko Post author

          You are welcome.

          Like or Dislike: Thumb up 0 Thumb down 0

          Reply

Leave a Reply

Your email address will not be published. Required fields are marked *