windows 11 classic context menu weird handling of IExplorerCommand

peter li 46 Reputation points
2026-08-18T17:55:03.1633333+00:00

My app registered the file and folder context menu by implementing IExplorerCommand interface. On my own PC, it worked well. The menu is shown in both the new windows 11 and the classic menu (the windows 10 style menu when you click "Show more options").

However, some users reported the menu entry is missing in only the classic menu. It shows up correctly in the new menu.

After some endless debugging (by removing all logic, and only preserve the menu entry), I found out that to ensure the menu entry shown in the classic menu, we have to register the desktop5:Verb Id initial letter to be aggressively at front when sorted. Something like putting a bunch of 0 as the Id, like the following in Package.appxmanifest

        <desktop4:Extension Category="windows.fileExplorerContextMenus">
          <desktop4:FileExplorerContextMenus>
            <desktop5:ItemType Type="Directory">
              <desktop5:Verb Id="0000ShellExtensionTest" Clsid="7A9C3E21-4B6D-4F8A-9E2C-1D5F8B3A6C40" />
            </desktop5:ItemType>
            <desktop5:ItemType Type="*">
              <desktop5:Verb Id="0000ShellExtensionTest" Clsid="7A9C3E21-4B6D-4F8A-9E2C-1D5F8B3A6C40" />
            </desktop5:ItemType>
            <desktop5:ItemType Type="Directory\Background">
              <desktop5:Verb Id="0000ShellExtensionTest" Clsid="7A9C3E21-4B6D-4F8A-9E2C-1D5F8B3A6C40" />
            </desktop5:ItemType>
          </desktop4:FileExplorerContextMenus>
        </desktop4:Extension>

If I use S as initial (like my real app), it is very unlikely to be picked up.

This behavior is very confusing and seems documented nowhere. I am not sure whether this is a BUG or something. And in that link, some known apps are indeed using this trick, without a Microsoft official confirmation on this.

Windows development | Windows API - Win32
0 comments No comments

Answer accepted by question author
Taki Ly (WICLOUD CORPORATION) 4,440 Reputation points Microsoft External Staff Moderator
2026-08-19T07:30:53.4766667+00:00

Hello @peter li ,

Thank you for the detailed investigation and minimal repro.

I reviewed the documentation and tested this on a machine with 225 installed packaged context-menu verbs. The desktop5:Verb Id is documented only as a 1-to-64-character string. I could not find any documented ordering or count limit that determines whether packaged verbs appear in the classic Show more options menu.

On my test machine, an Id beginning with S, such as ShellExtensionTest, appeared near the end of the sorted list, while an Id beginning with 0000 appeared ahead of the other entries. This is consistent with your observation and suggests that ordering may affect which commands are surfaced. However, this remains an observed behavior rather than a confirmed Shell implementation rule.

As a workaround, you may use a unique Id that sorts earlier while keeping the same Clsid, then validate it on the affected machines. There is currently not enough documented information to classify this conclusively as either a bug or intended behavior.

If the issue continues to affect your application, you may also report it through the Windows Feedback Hub as a suspected Windows Shell issue. Please include the affected Windows build, minimal repro, tested Id values, and screenshots or a recording of the behavior.

Please let me know whether changing only the Id consistently restores the command on the affected machines. If you found my response helpful or informative, I would greatly appreciate it if you could follow this guide for your confirmation.

Thank you.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Oldest
  1. Taki Ly (WICLOUD CORPORATION) 4,440 Reputation points Microsoft External Staff Moderator
    2026-08-19T01:55:21.2033333+00:00

    Hi @peter li ,

    I'm working on this issue and will try to get back to you soon. Thank you for your patience.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.