Skip to content

Instantly share code, notes, and snippets.

@vyach-vasiliev
Created December 11, 2021 21:32
Show Gist options
  • Save vyach-vasiliev/b6a558e4adb155250070883ae7141548 to your computer and use it in GitHub Desktop.
Save vyach-vasiliev/b6a558e4adb155250070883ae7141548 to your computer and use it in GitHub Desktop.
Hide any item context menu in Windows by regedit

Windows context menu control by regedit

How to do it

Inside these paths

  • HKEY_CLASSES_ROOT\Directory\Background\shell
  • HKEY_CLASSES_ROOT\Directory\shell

you can add special parameters

  • name HideBasedOnVelocityId, type DWORD32, hex value 006698a6 (hides the menu item everywhere)
  • name Extended, type string (hides the menu item only when just right-clicking mouse, with Shift+RightMouseButton click, it will show again)

Example

  1. In path HKEY_CLASSES_ROOT\Directory\shell\git_gui add row Extended.
  2. And now item ctx menu Git GUI Here will be shown only when you Shift+RightMouseButton click.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment