https://www.tenforums.com/tutorials/24412-add-remove-default-new-context-menu-items-windows-10-a.html#option1
Restore_New_Text_Document_context_menu_item.reg
Keep your context menu sleek!
- Open 7-Zip File Manager.
- On the 7-Zip window, switch to the Tools menu and then select the Options... button.
- On the Options page, switch to the 7-Zip tab and then uncheck the CRC SHA option in the Context menu items section.
02. Remove Share with/Give access to, Share, Restore previous versions and Include in library from FILE context menu
- Open Winaero Tweaker.
- Scroll down to the Context Menu section and then select Remove Default Entries.
- Check the Cast to Device, Share with/Give Access To, Share (Modern Sharing), Restore Previous Versions, Include in library, Open in Windows Terminal, Add to Favorites, Edit in Notepad and Edit in Clipchamp checkboxes.
In the Registry Editor, delete the Computer\HKEY_CLASSES_ROOT\*\shell\RunAs key
See attachment:
DelRunAsAdmin.reg
04. Remove Restore from snapshot from the FILE and FOLDER context menus
By default, Rollback RX Home adds 'Restore from snapshot' to the context menus of files and folders.
- in the Registry Editor, go to Computer\HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\ShdExt - this probably stands for Shield Extension
- double-click the (Default) string value and prefix its data with some dashes (I used the prefix ----LegacyDisable----)
- then go to Computer\HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\ShdExt
- again, double-click the (Default) string value and prefix its data with some dashes
- you don't have to logoff/logon - the changes take place immediately!
source:
https://www.howtogeek.com/howto/windows-vista/how-to-clean-up-your-messy-windows-context-menu/
PowerToys has the following context menu items:
- Resize pictures
- PowerRename
- Unlock with File Locksmith ► this one can simply be disabled in the settings of PowerToys itself
They can occur twice in the context menu (depending on whether you select a file or a folder, or a folder background). I think it's due to the fact that I'm using
!StartAllBack , where I enabled the
Classic context menus option in the
Explorer category.
You can get rid of the duplicate ones of them by deleting the following registry keys:
PowerRename context menu:
[HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\{1861E28B-A1F0-4EF4-A1FE-4C8CA88E2174}]
Image Resizer context menu:
[HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\{8F491918-259F-451A-950F-8C3EBF4864AF}]
Attached you find a backup of these registry keys. You never know you need them. Be aware that they return when you update PowerToys:
HCR-PC-CI-PT.ImgResizerCtxMenu_metro.reg &
HCR-PC-CI-Ms.PT.PwrRenameCtxMenu_metro.reg.
And also a registry script to delete these entries:
DelPowerToysImageResizerAndPowerRename.reg
Maybe a more final solution can be found here:
https://winaero.com/how-to-remove-edit-with-clipchamp-from-context-menu-in-file-explorer/.
Don't remove them, I did this first, but this lead to a non functioning Windows Explorer (!):
- In the registry, go to HKCR\Folder\shell and delete the opennewtab and opennewwindow keys
- The change is immediate (no restart required)
However, after some time, I got the following error when trying to launch a Windows Explorer!!!:
shell:::{52205fd8-447d-801a-d0b52f22e83e1}
So, putting back the backup of these entries solved this!
You can however move them to the Extended context menu (the one that appears when you right-click while holding the Shift key):
- If you want to add the "Open in new window" to the extended context menu (that's the one that appears when right-clicking a file or folder while pressing the Shift key), then you must add an empty String Value to HKCR\Folder\shell\opennewwindow, named 'Extended'. (See opennewprocess entry where this entry is)
- The same goes for "Open in new tab".
Source:
https://superuser.com/questions/720519/error-shell52205fd8-5dfb-447d-801a-d0b52f2e83e1-this-file-has-no-program
This entry seems to be present for any file type (.xlsx, .jpg, …). You can remove it as follows:
- open an elevated command prompt
- type cd "c:\Program Files\Notepad++\contextMenu" and hit Enter
- Type regsvr32 /u NppShell.dll and hit Enter
- Type exit and hit Enter to close command line
source:
https://onezeronull.com/2014/09/23/remove-edit-with-notepad-option-from-context-menu/
Don't fear, the file associaton with unknown file types remains (as described in
WinFileTypeAssociation).
08. Win11 NEW context menu: remove the Copilot and Edit with Paint items from the context menu
These items can have various CLSID's, so you'll first have to find out the ones for your specific system: in PowerShell, issue the following command:
(Get-AppxPackage | Get-AppxPackageManifest) | foreach { $_.package.Applications.Application.Extensions.Extension.FileExplorerContextMenus.itemtype.verb } | select Id,Clsid -unique
En dan krijg je iets als:
Id |
Clsid |
| EditInPaint |
2430F218-B743-4FD6-97BF-5C76541B4AE9 |
| Command5 |
1FA0E654-C9F2-4A1F-9800-B9A75D744B05 |
| Command4 |
1FA0E654-C9F2-4A1F-9800-B9A75D744B04 |
| Command3 |
1FA0E654-C9F2-4A1F-9800-B9A75D744B03 |
| Command2 |
1FA0E654-C9F2-4A1F-9800-B9A75D744B02 |
| Command1 |
1FA0E654-C9F2-4A1F-9800-B9A75D744B01 |
| Command0 |
1FA0E654-C9F2-4A1F-9800-B9A75D744B00 |
| Command0 |
5250E46F-BB09-D602-5891-F476DC89B700 |
| -- |
----- |
| WinMergeDir |
90340779-F37E-468E-9728-A2593498ED32 |
| WinMerge |
90340779-F37E-468E-9728-A2593498ED32 |
| ShellEdit |
BFE0E2A4-C70C-4AD7-AC3D-10D1ECEBB5B4 |
| PowerRenameCommand |
1861E28B-A1F0-4EF4-A1FE-4C8CA88E2174 |
| OpenTerminalHere |
9f156763-7844-4dc4-b2b1-901f640f5155 |
| ImageResizerCommand |
8F491918-259F-451A-950F-8C3EBF4864AF |
| FileLocksmithCommand |
AAF1E27D-4976-49C2-8895-AAFA743C0A7E |
| EditWith |
8AB635F8-9A67-4698-AB99-784AD929F3B4 |
| CreateWithDesigner |
7a53b94a-4e6e-4826-b48e-535020b264e5 |
| AskM365Copilot |
4a616e61-3bfe-4f5c-937f-b8602bf16679 |
| AskCopilot |
ED215C26-C810-49CE-929E-31D7E83A82E9 |
| AShellEdit |
BFE0E2A4-C70C-4AD7-AC3D-10D1ECEBB5B4 |
| 0000NanaZipShellExtension |
CAE3F1D4-7765-4D98-A060-52CD14D56EAB |
Then, in the Registry, go to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked.
If the
Blocked key doesn't exist, create it first.
In the Blocked key, create
String Values, using the above CLSID's, surrounded by brackets:
{ED215C26-C810-49CE-929E-31D7E83A82E9}
{4a616e61-3bfe-4f5c-937f-b8602bf16679}
{2430F218-B743-4FD6-97BF-5C76541B4AE9}
The change is instant, you don't have to restart.
If you look up the CLSID's belonging to the Command0 to Command5 ID's in Computer\HKEY_CLASSES_ROOT\PackagedCom\ClassIndex\, you'll find out that they all relate to
OneDrive.
Also add these ones to the
Blocked key as String Values, and the OneDrive entry disappears from the context menu:
{1FA0E654-C9F2-4A1F-9800-B9A75D744B00}
{...01}
{...02}
{...03}
{...04}
{5250E46F-BB09-D602-5891-F476DC89B705}
{5250E46F-BB09-D602-5891-F476DC89B700}
That's a difficult one.
I had a PC where I had
Photos > (with a submenu), and one with
Edit with Photos
- open a system shell
- go to C:\Program Files\WindowsApps
- dir *photos*
- go to the found directory (the one without 'neutral'): cd Microsoft.Windows.Photos_2026.11020.20001.0_x64__8wekyb3d8bbwe
- edit AppxManifest.xml
- scroll down to or search (Ctrl+f) ContextMenus
- all image file types are listed and all mention the same two Verb Id's:
<desktop5:ItemType Type=".png">
<desktop5:Verb Id="AShellEdit" Clsid="BFE0E2A4-C70C-4AD7-AC3D-10D1ECEBB5B4" />
<desktop5:Verb Id="CreateWithDesigner" Clsid="7a53b94a-4e6e-4826-b48e-535020b264e5" />
</desktop5:ItemType>
Use the mentioned
CLSID values in the
Blocked list from 08. & 09. and Photos disappears from the context menu.
source:
https://www.reddit.com/r/WindowsHelp/comments/1smv8m4/does_anyone_know_what_registry_entry_this_exists/
Edit with Photos
See 8.
There I needed the CLSID from AShellEdit to be added to the Blocked list (see Verb Id)
{BFE0E2A4-C70C-4AD7-AC3D-10D1ECEBB5B4}
On ElevenForum, you find .reg files that delete/restore the registry entries that control this setting:
Add or Remove "Set as desktop background" Context Menu in Windows 11
However,
- this is a drastic method, since it deletes registry entries
- not all image file types are included, e.g. .webp files
But there is a better method. You can do this by using ShellMenuView from NirSoft.
Open the tool, scroll down to the "Set as desktop background" items, select them, rightclick and choose
Disable Selected Items.
This tool doesn't delete registry entries, but adds an entry
HKCR\SystemFileAssociations\.ext\Shell\setdesktopwallpaper: an empty String Value is added, named
!LegacyDisable.
- regedit
- goto Computer\HKEY_CURRENT_USER\Software\Classes\*\shell\pintohomefile
- Add a String Value named ProgrammaticAccessOnly, and keep Value data empty.
That's it!
You want to
edit .reg, .sql and .vbs files with another app (Notepad++) than the one that
opens them:
Look for the (Default) string value of the extension directly under
HKCR:
- .reg: (Default) regfile
- .sql: (Default) SQLFile
- .vbs: (Default) VBSFile
Then, go to:
- HKCR\regfile\shell\edit\command: change (Default) to "C:\Program Files\Notepad++\notepad++.exe" "%1"
- HKCR\VBSFile\Shell\Edit\Command: change (Default) to "C:\Program Files\Notepad++\notepad++.exe" "%1"
For .sql / SQLFile, I had to go to HKCR\SQLC.Document (File Explorer shows SQLC Document as file type)
- HKCR\SQLC.Document\shell\edit\command: change (Default) to "C:\Program Files\Notepad++\notepad++.exe" "%1"
And I was also looking for .ps1 files, these are under
HKCR\SystemFileAssociations\.ps1:
The (Default) has (value not set), so the context menu items are directly here:
- HKCROOT\SystemFileAssociations\.ps1\Shell\Edit\Command: change (Default) to "C:\Program Files\Notepad++\notepad++.exe" "%1"
Obsolete, since I'm now using the Terminal from the Windows Explorer address bar
Windows Terminal, see: WinTerminal
Installing is simple: simply execute the install.ps1 script in an elevated prompt.
However, there are three layouts, default (with submenus), flat, and mini. Installation and uninstallation requires flat and mini as parameter:
- .\install.ps1 flat and .\uninstall.ps1 flat
- *.\install.ps1 mini* and .\uninstall.ps1 mini
I've chosen the mini layout.