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.
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
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 your choose 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).
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.