Skip to content

Instantly share code, notes, and snippets.

@Busyrev
Created October 31, 2019 09:43
Show Gist options
  • Save Busyrev/23ab8f1755737aed2a494c40073a452a to your computer and use it in GitHub Desktop.
Save Busyrev/23ab8f1755737aed2a494c40073a452a to your computer and use it in GitHub Desktop.

Revisions

  1. Busyrev created this gist Oct 31, 2019.
    274 changes: 274 additions & 0 deletions removeShitFromContextMenu.reg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,274 @@
    Windows Registry Editor Version 5.00

    ;--------
    ;-------- Remove Paint 3D Edit from context menu for image files
    ;--------

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.bmp\Shell\3D Edit]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpeg\Shell\3D Edit]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpe\Shell\3D Edit]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpg\Shell\3D Edit]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.png\Shell\3D Edit]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.gif\Shell\3D Edit]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.tif\Shell\3D Edit]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.tiff\Shell\3D Edit]

    ;--------
    ;-------- Remove set desktop wallpaper from context menu for image files
    ;--------

    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.bmp\Shell\setdesktopwallpaper]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpeg\Shell\setdesktopwallpaper]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpe\Shell\setdesktopwallpaper]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.jpg\Shell\setdesktopwallpaper]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.png\Shell\setdesktopwallpaper]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.gif\Shell\setdesktopwallpaper]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.tif\Shell\setdesktopwallpaper]
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.tiff\Shell\setdesktopwallpaper]

    ;--------
    ;-------- Remove create video from context menu for image files
    ;--------

    [HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\ShellCreateVideo]
    "ProgrammaticAccessOnly"=""

    [HKEY_CLASSES_ROOT\AppXk0g4vb8gvt7b93tg50ybcy892pge6jmt\Shell\ShellCreateVideo]
    "ProgrammaticAccessOnly"=""

    [HKEY_CLASSES_ROOT\AppX43hnxtbyyps62jhe9sqpdzxn1790zetc\Shell\ShellEdit]
    "ProgrammaticAccessOnly"=""

    ;--------
    ;-------- Remove "Print" from context menu for image files
    ;--------
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\print]


    ;--------
    ;-------- Remove Print From common text-based files
    ;--------
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\print]
    [-HKEY_CLASSES_ROOT\batfile\shell\print]
    [-HKEY_CLASSES_ROOT\cmdfile\shell\print]
    [-HKEY_CLASSES_ROOT\docfile\shell\print]
    [-HKEY_CLASSES_ROOT\fonfile\shell\print]
    [-HKEY_CLASSES_ROOT\htmlfile\shell\print]
    [-HKEY_CLASSES_ROOT\inffile\shell\print]
    [-HKEY_CLASSES_ROOT\inifile\shell\print]
    [-HKEY_CLASSES_ROOT\JSEFile\shell\print]
    [-HKEY_CLASSES_ROOT\JSFile\shell\print]
    [-HKEY_CLASSES_ROOT\MSInfo.Document\shell\print]
    [-HKEY_CLASSES_ROOT\otffile\shell\print]
    [-HKEY_CLASSES_ROOT\pfmfile\shell\print]
    [-HKEY_CLASSES_ROOT\regfile\shell\print]
    [-HKEY_CLASSES_ROOT\rtffile\shell\print]
    [-HKEY_CLASSES_ROOT\ttcfile\shell\print]
    [-HKEY_CLASSES_ROOT\ttffile\shell\print]
    [-HKEY_CLASSES_ROOT\txtfile\shell\print]
    [-HKEY_CLASSES_ROOT\VBEFile\shell\print]
    [-HKEY_CLASSES_ROOT\VBSFile\shell\print]
    [-HKEY_CLASSES_ROOT\Wordpad.Document.1\shell\print]
    [-HKEY_CLASSES_ROOT\WPEDoc\shell\print]
    [-HKEY_CLASSES_ROOT\WPSDoc\shell\print]
    [-HKEY_CLASSES_ROOT\wrifile\shell\print]
    [-HKEY_CLASSES_ROOT\WSFFile\shell\print]

    ;--------
    ;-------- Remove Print From Internet Shortcut
    ;--------
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell\print]

    ;--------
    ;-------- Remove Print From Acrobat-/Foxit-registered .pdf files
    ;--------
    [-HKEY_CLASSES_ROOT\AcroExch.Document.7\shell\print]
    [-HKEY_CLASSES_ROOT\FoxitReader.Document\shell\print]

    ;--------
    ;-------- Remove "edit" from context menu for image files
    ;--------
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\image\shell\edit]


    ;--------
    ;-------- Remove edit From common text-based files
    ;--------
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\text\shell\edit]
    [-HKEY_CLASSES_ROOT\batfile\shell\edit]
    [-HKEY_CLASSES_ROOT\cmdfile\shell\edit]
    [-HKEY_CLASSES_ROOT\docfile\shell\edit]
    [-HKEY_CLASSES_ROOT\fonfile\shell\edit]
    [-HKEY_CLASSES_ROOT\htmlfile\shell\edit]
    [-HKEY_CLASSES_ROOT\inffile\shell\edit]
    [-HKEY_CLASSES_ROOT\inifile\shell\edit]
    [-HKEY_CLASSES_ROOT\JSEFile\shell\edit]
    [-HKEY_CLASSES_ROOT\JSFile\shell\edit]
    [-HKEY_CLASSES_ROOT\MSInfo.Document\shell\edit]
    [-HKEY_CLASSES_ROOT\otffile\shell\edit]
    [-HKEY_CLASSES_ROOT\pfmfile\shell\edit]
    [-HKEY_CLASSES_ROOT\regfile\shell\edit]
    [-HKEY_CLASSES_ROOT\rtffile\shell\edit]
    [-HKEY_CLASSES_ROOT\ttcfile\shell\edit]
    [-HKEY_CLASSES_ROOT\ttffile\shell\edit]
    [-HKEY_CLASSES_ROOT\txtfile\shell\edit]
    [-HKEY_CLASSES_ROOT\VBEFile\shell\edit]
    [-HKEY_CLASSES_ROOT\VBSFile\shell\edit]
    [-HKEY_CLASSES_ROOT\Wordpad.Document.1\shell\edit]
    [-HKEY_CLASSES_ROOT\WPEDoc\shell\edit]
    [-HKEY_CLASSES_ROOT\WPSDoc\shell\edit]
    [-HKEY_CLASSES_ROOT\wrifile\shell\edit]
    [-HKEY_CLASSES_ROOT\WSFFile\shell\edit]

    ;--------
    ;-------- Remove edit From Internet Shortcut
    ;--------
    [-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\InternetShortcut\shell\edit]

    ;--------
    ;-------- Remove edit From Acrobat-/Foxit-registered .pdf files
    ;--------
    [-HKEY_CLASSES_ROOT\AcroExch.Document.7\shell\edit]
    [-HKEY_CLASSES_ROOT\FoxitReader.Document\shell\edit]

    ;--------
    ;-------- Remove rotate left and rotate right from images menu
    ;--------

    [-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]

    ;--------
    ;-------- Remove share from menu
    ;--------

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
    "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}"=""

    ;--------
    ;-------- Remove scan with windows defender from menu
    ;--------

    [-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\EPP]
    [-HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\EPP]


    ;--------
    ;-------- Remove cast to device from menu
    ;--------
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
    "{7AD84985-87B4-4a16-BE58-8B72A5B390F7}"=""

    ;--------
    ;-------- Remove restore previous version from menu
    ;--------
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
    "{596AB062-B4D2-4215-9F74-E9109B0A8153}"=""

    ;--------
    ;-------- Remove send to from menu
    ;--------

    [-HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\SendTo]

    ;--------
    ;-------- Remove Add to Windows Media Player list
    ;--------

    [-HKEY_CLASSES_ROOT\MediaCenter.WTVFile\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\Stack.Audio\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\Stack.Image\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP.DVR-MSFile\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP.WTVFile\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.3G2\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.3GP\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.ADTS\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.AIFF\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.ASF\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.ASX\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.AU\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.AVI\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.FLAC\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.M2TS\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.m3u\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.M4A\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.MIDI\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.MK3D\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.MKA\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.MKV\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.MOV\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.MP3\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.MP4\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.MPEG\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.TTS\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.WAV\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.WAX\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.WMA\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.WMV\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.WPL\shell\Enqueue]
    [-HKEY_CLASSES_ROOT\WMP11.AssocFile.WVX\shell\Enqueue]

    ;--------
    ;-------- Remove Play with Windows Media Player
    ;--------

    [-HKEY_CLASSES_ROOT\Stack.Audio\shell\Play]
    [-HKEY_CLASSES_ROOT\Stack.Image\shell\Play]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\audio\shell\Play]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Audio\shell\Play]
    [-HKEY_CLASSES_ROOT\SystemFileAssociations\Directory.Image\shell\Play]

    ; remove customize
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoCustomizeThisFolder"="1"

    ; remove Give Access To
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
    "{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"=""


    ;--------
    ;-------- Enable copy as path without shift
    ;--------

    [HKEY_CLASSES_ROOT\Allfilesystemobjects\shell\windows.copyaspath]
    "CanonicalName"="{707C7BC6-685A-4A4D-A275-3966A5A3EFAA}"
    "CommandStateHandler"="{3B1599F9-E00A-4BBF-AD3E-B3F99FA87779}"
    "CommandStateSync"=""
    "Description"="@shell32.dll,-30336"
    "Icon"="imageres.dll,-5302"
    "InvokeCommandOnSelection"=dword:00000001
    "MUIVerb"="@shell32.dll,-30329"
    "VerbHandler"="{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}"
    "VerbName"="copyaspath"