This guide shows you how to customize the Windows 10 context menu (the menu that appears when you right-click the desktop, folders, or files). You’ll learn how to add, remove, and reorganize items using built-in tools and the Registry Editor, giving you quicker access to the programs and commands you use most.
What You’ll Need
- A Windows 10 PC with administrator access (you’ll need it to edit the registry).
- A backup of your registry (recommended, but optional).
- Basic comfort with navigating menus and typing commands.
Step-by-Step
- Understand the two types of context menus. Windows 10 has a classic context menu (full, with many options) and a new compact one (shows only basic options like Cut, Copy, Paste, Delete, and Rename). The new menu is the default on a fresh install or after a major update. To switch between them, right-click the desktop, then click “Show more options” (or press Shift+F10) to see the classic menu.
- Open the Registry Editor. Press Windows + R, type
regedit, and press Enter. Click “Yes” if prompted by User Account Control. - Back up your registry (recommended). In Registry Editor, click File > Export. Choose a location, enter a file name, and click “Save.” This creates a .reg file you can double-click to restore if something goes wrong.
- Add a program to the context menu for all files. Navigate to
HKEY_CLASSES_ROOT\*\shell. Right-click onshell, select New > Key, and name it (e.g., “Open with Notepad”). Select the new key, then double-click the (Default) value on the right and enter the text you want to appear in the menu (e.g., “Open with Notepad”). Right-click your new key, select New > Key, and name itcommand. Double-click the (Default) value insidecommandand enter the full path to the executable, followed by"%1"(e.g.,C:\Windows\notepad.exe "%1"). Click OK. - Add a program to the context menu for folders. Navigate to
HKEY_CLASSES_ROOT\Directory\shell. Right-click onshell, create a new key (e.g., “Open in CMD”). Set its (Default) value to the menu text. Create acommandsubkey, and set its (Default) to the command (e.g.,cmd.exe /k "cd %1"). - Add a program to the context menu for the desktop background. Navigate to
HKEY_CLASSES_ROOT\DesktopBackground\Shell. Right-click onshell, create a new key (e.g., “Open Task Manager”). Set the (Default) value to “Open Task Manager”. Create acommandsubkey and set its (Default) totaskmgr.exe. - Remove an item from the context menu. Navigate to the key that contains the item you want to remove. Common locations are
HKEY_CLASSES_ROOT\*\shell(for files),HKEY_CLASSES_ROOT\Directory\shell(for folders), andHKEY_CLASSES_ROOT\Directory\Background\shell(for folder backgrounds). Right-click the specific key for that item and select Delete. Confirm the deletion. - Reorganize items (change order). Some items support a
Positionstring value inside their key. Set it toToporBottomto move the item to the top or bottom of the menu. For more precise control, you can use third-party tools (like Easy Context Menu) that provide a GUI. - Restore the classic full context menu (if you prefer it). If you want to always see the full menu instead of the compact one, create a new DWORD value named
CLSIDunderHKEY_CURRENT_USER\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32. Set its value to an empty string (just double-click it and delete any value). If the key doesn’t exist, create it. This forces Windows to show the classic menu by default. - Log off and back on (or restart Explorer). Most changes take effect immediately, but some require restarting Windows Explorer. To do that: right-click the taskbar, select Task Manager, find “Windows Explorer” in the Processes tab, right-click it, and select Restart. If that doesn’t work, log off and back on.
Common Mistakes
- Deleting the wrong registry key. Always double-check the path before deleting. Deleting a key like
shellitself can break the entire context menu. - Forgetting the quotes around
%1. If the file path contains spaces (e.g., “C:\My Files\file.txt”), the command will fail unless you include quotes. - Using the wrong registry hive.
HKEY_CLASSES_ROOTis the correct hive for context menu items. UsingHKEY_CURRENT_USER\Software\Classesworks too, but it’s less common and can cause confusion. - Not backing up before editing. A single typo in the registry can cause instability. Always export a backup first.
- Editing the registry while an app is running. Some apps may overwrite your changes on exit. Close the app before editing its context menu entries.
Tips
- Use the
Extendedsubkey. If you add a subkey namedExtended(a key, not a value) under your custom key, the item will only appear when you hold Shift while right-clicking. This keeps your menu clean. - Add an icon to your custom item. Under your custom key, create a string value named
Iconand set it to the path of an .ico file (e.g.,C:\Windows\notepad.exe). - Use a tool like Easy Context Menu. If you don’t want to edit the registry manually, free tools provide a checkbox interface to add/remove common items, and they handle the registry for you.
- Test with a harmless command first. Before adding something complex, try a simple command like
notepad.exeto verify the process works. - Export your custom keys. After you’ve set up your ideal menu, export the relevant keys (e.g.,
HKEY_CLASSES_ROOT\*\shell\MyApp) to a .reg file. You can then double-click it on another PC to apply the same customization.
Troubleshooting
- My new item doesn’t appear. Check that you created the
commandsubkey correctly and that the path to the executable is valid. Also, ensure you’re right-clicking the correct object (file, folder, background). Restart Explorer if needed. - The item appears but does nothing when clicked. The command path is likely wrong. Double-check the executable path, including the quotes around
%1. Test the command in a Command Prompt window first. - I deleted a key and now the menu is broken. Restore your registry backup by double-clicking the .reg file you exported. If you didn’t back up, you can try using System Restore to revert to an earlier point.
- Changes don’t take effect after restart. Some items are cached. Try signing out and back in, or restarting the PC. If the item is from a third-party app, the app may re-add it on startup.
- I see a “Cannot compute” error in the registry. That’s not a registry error; it’s likely a calculator artifact. Ignore it. For registry issues, check the exact key path and value names.
Frequently Asked Questions
Is it safe to edit the Windows registry?
Editing the registry is safe if you follow instructions carefully and back up first. A mistake can cause errors, but you can usually undo it by restoring the backup or using System Restore.
How do I remove the “Edit with Paint 3D” option?
Navigate to HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\3D Edit and delete the 3D Edit key. This removes the option from image files.
Why is my context menu different from the screenshots I see online?
Windows 10 has two context menus: the new compact one and the classic one. The compact menu shows fewer items. You can switch to the classic menu by clicking “Show more options” or by using the registry tweak described in Step 9.
Can I add a context menu item for a specific file type only?
Yes. Instead of using HKEY_CLASSES_ROOT\*\shell, navigate to the file extension’s key, e.g., HKEY_CLASSES_ROOT\.txt\shell. Then create your key and command there.
Will these changes affect other users on my PC?
Changes made under HKEY_CLASSES_ROOT apply to all users. If you want changes only for your user account, use HKEY_CURRENT_USER\Software\Classes instead.
How do I undo all my changes?
Restore the registry backup you made before editing. If you didn’t make one, you can manually delete the keys you added or reset the affected keys to their default values.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Shockwave Flash Crashes in Firefox
- Fix Microsoft Account Apps Notification in Windows 10
- Printer Problems With macOS Catalina: Fixes
- CSS min(), max(), clamp(): How to Use Them
- How to Partition an External Hard Drive
- How to Transfer PicsArt Stickers from Android to PC