User:Podbrushkin/Windows: Registry

= Removing context menu items =

Context menu items are of two types: classic registry entries and shell extensions. You can disable extensions by adding their identifiers to the list of blocked extensions located here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked To make changes visible, logout and login to your account. Classic registry entries can be disabled by adding string value.

Here is the list of Shell Extensions and their identifiers by which you can block them:
 * - Edit with Notepad++
 * - Rotate left and Rotate right
 * - Scan with Microsoft Defender
 * - Give access to
 * - Share with Skype
 * - Open in Terminal

Edit with Paint 3D
 Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpg\Shell\3D Edit] "LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpe\Shell\3D Edit] "LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpeg\Shell\3D Edit] "LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jfif\Shell\3D Edit] "LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.bmp\Shell\3D Edit] "LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.gif\Shell\3D Edit] "LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.png\Shell\3D Edit] "LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.tif\Shell\3D Edit] "LegacyDisable"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.tiff\Shell\3D Edit] "LegacyDisable"=""

 Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.bmp\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.dib\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.gif\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.heic\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.heif\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.ico\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.jfif\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.jpe\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.jpeg\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.jpg\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.png\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.rle\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.tif\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.tiff\ShellEx\ContextMenuHandlers\ShellImagePreview]

[-HKEY_CLASSES_ROOT\SystemFileAssociations\.webp\ShellEx\ContextMenuHandlers\ShellImagePreview]

To add this items back, execute this:  Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\SystemFileAssociations\.bmp\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.dib\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.gif\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.heic\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.heif\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.ico\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.jfif\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.jpe\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.jpeg\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.jpg\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.png\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.rle\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.tif\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.tiff\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}"

[HKEY_CLASSES_ROOT\SystemFileAssociations\.webp\ShellEx\ContextMenuHandlers\ShellImagePreview] @="{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A}" Source: winaero.com

Scan with Microsoft Defender
You have this entry in your registry: [HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\EPP] @="{09A47860-11B0-4DA5-AFA5-26D86198A780}" Before first curly bracket, add disabled keyword, and item will be hidden.

Also you have this entry: [HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\EPP] @="{09A47860-11B0-4DA5-AFA5-26D86198A780}" Do the same changes in order to disable this item for directories as well.

Source: winaero.com

Give access to
This menu item is represented by shell extension. You can disable it by adding it to the list of blocked extensions: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked] "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"=""

Source: thewindowsclub.com

Share with Skype
You can add this item to the list of blocked extensions:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked] "{776DBC8D-7347-478C-8D71-791E12EF49D8}"="" -->

Edit with Notepad++
You can use this .reg to make it appear only on special file types:

 Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\ANotepad++64] @="disabled{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.txt\shellex\ContextMenuHandlers\ANotepad++64] @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tsv\shellex\ContextMenuHandlers\ANotepad++64] @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.reg\shellex\ContextMenuHandlers\ANotepad++64] @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.md\shellex\ContextMenuHandlers\ANotepad++64] @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.java\shellex\ContextMenuHandlers\ANotepad++64] @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.xml\shellex\ContextMenuHandlers\ANotepad++64] @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.json\shellex\ContextMenuHandlers\ANotepad++64] @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.properties\shellex\ContextMenuHandlers\ANotepad++64] @="{B298D29A-A6ED-11DE-BA8C-A68E55D89593}"

How to add this item without extensions, explained here.

You can open directories in npp with this context menu item:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Show in Notepad++\command] @="C:\\Program Files\\Notepad++\\notepad++.exe \"%V\" -openFoldersAsWorkspace -noSession -multiInst"

Print
HKEY_CLASSES_ROOT\txtfile\shell\print

Open in Terminal
This menu item will appear by itself after installation of Windows Terminal. You can block it the standard way for shell extensions, but you can't rename it or make it to appear only in extended context menu (Shift + rmb). In order to do this, you will need to disable default menu item and create a classic one by yourself.

Download Terminal icon file from cmd with administrator rights ( -> -> ):

Execute this .reg file: Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenInTerminal] "MUIVerb"="Open in Terminal" "Extended"="" "Icon"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\ 00,5f,00,63,00,75,00,73,00,74,00,6f,00,6d,00,54,00,65,00,72,00,6d,00,69,00,\ 6e,00,61,00,6c,00,2e,00,69,00,63,00,6f,00,00,00

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenInTerminal\command] @="wt.exe -d ."