新的右键菜单中不可删除的项目

新的右键菜单中不可删除的项目

我想从上下文菜单的菜单中删除Text Document和项目,但我无法在注册表中找到这些项目。我能够从菜单中删除其他项目,但这两个项目似乎没有与其他新项目快捷方式存储在同一个位置:Bitmap imageNewNew

  • 我查看了HKCR\.bmpHKCR\.txt,都没有密钥ShellNew,也没有存储在其中:
    HKCR\*\shell
    HKCR\*\shellex\ContextMenuHandlers
    HKCR\AllFileSystemObjects\ShellEx
    HKCR\Directory\shell
    HKCR\Directory\shellex\ContextMenuHandlers
    
  • 我使用了 Nirsoft 的ShellMenuNew并且Bitmap ImageText Document不出现
  • 我已经尝试过本文列出的建议问题和 How-To Geek文章

答案1

找到了答案Windows Eleven论坛。这与记事本和画图现在是 UWP 应用有关。要删除上下文菜单条目,您必须卸载记事本和画图。还有另一种方法,但它需要对应用程序本身进行清理。

删除 .txt 和 .bmp,但Create > New Context Menu不从 Windows 中删除记事本和画图组件。

对于油漆开放 C:\Program Files\WindowsApps\Microsoft.Paint_11.2110.0.0_x64__8wekyb3d8bbwe\AppxManifest.xml

对于记事本打开 C:\Program Files\WindowsApps\Microsoft.WindowsNotepad_10.2103.7.0_x64__8wekyb3d8bbwe\AppxManifest.xml

并删除以<uap:文件类型 uap4:ShellNewFileName=

请注意,用户甚至管理员都无法编辑 C:\Program Files\WindowsApps\,并且每次发布新的应用程序版本时,更改很可能会被重置。

答案2

去除:

  • 位图图像:
    # PowerShell $env:UserProfile variable used | Cmd: Replace with %UserProfile%
    
    # Backup key within the Registry and delete:
      Reg Copy "HKCR\.bmp\ShellNew" "HKCR\.bmp\CustomDisabled\ShellNew" /s /f
      Reg Delete "HKCR\.bmp\ShellNew"
        # To restore:
          Reg Copy "HKCR\.bmp\CustomDisabled\ShellNew" "HKCR\.bmp\ShellNew" /s /f
    
    # Backup key within a file and delete:
      MkDir "$env:UserProfile\Documents\RegistryBackup"
      Reg Export "HKCR\.bmp\ShellNew" "$env:UserProfile\Documents\RegistryBackup\bmp-ShellNew.reg"
      Reg Delete "HKCR\.bmp\ShellNew"
        # To restore:
          Reg Import "$env:UserProfile\Documents\RegistryBackup\bmp-ShellNew.reg"
    

  • 文本文件:
    # PowerShell $env:UserProfile variable used | Cmd: Replace with %UserProfile%
    
    # Backup key within the Registry and delete:
      Reg Copy "HKCR\.txt\ShellNew" "HKCR\.txt\CustomDisabled\ShellNew" /s /f
      Reg Delete "HKCR\.txt\ShellNew"
        # To restore:
          Reg Copy "HKCR\.txt\CustomDisabled\ShellNew" "HKCR\.txt\ShellNew" /s /f
    
    # Backup key within a file and delete:
      MkDir "$env:UserProfile\Documents\RegistryBackup"
      Reg Export "HKCR\.txt\ShellNew" "$env:UserProfile\Documents\RegistryBackup\txt-ShellNew.reg"
      Reg Delete "HKCR\.txt\ShellNew"
        # To restore:
          Reg Import "$env:UserProfile\Documents\RegistryBackup\txt-ShellNew.reg"
    


参考:

  • RegCopy|Delete|Export|Import
  • 默认HKCR\.bmpHKCR\.txt键:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\.bmp]
    @="Paint.Picture"
    "Content Type"="image/bmp"
    "PerceivedType"="image"
    
    [HKEY_CLASSES_ROOT\.bmp\OpenWithList]
    
    [HKEY_CLASSES_ROOT\.bmp\OpenWithList\MSPaint.exe]
    @=""
    
    [HKEY_CLASSES_ROOT\.bmp\OpenWithProgids]
    "AppX2jm25qtmp2qxstv333wv5mne3k5bf4bm"=hex(0):
    "AppX43hnxtbyyps62jhe9sqpdzxn1790zetc"=hex(0):
    "AppXcdh38jxzbcberv50vxg2tg4k84kfnewn"=hex(0):
    "Paint.Picture"=""
    
    [HKEY_CLASSES_ROOT\.bmp\PersistentHandler]
    @="{098f2470-bae0-11cd-b579-08002b30bfeb}"
    
    [HKEY_CLASSES_ROOT\.bmp\ShellNew]
    "ItemName"=hex(2):40,00,43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,\
      73,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,73,\
      00,70,00,61,00,69,00,6e,00,74,00,2e,00,65,00,78,00,65,00,2c,00,2d,00,35,00,\
      39,00,34,00,31,00,34,00,00,00
    "NullFile"=""
    
    [HKEY_CLASSES_ROOT\.txt]
    @="txtfile"
    "Content Type"="text/plain"
    "PerceivedType"="text"
    
    [HKEY_CLASSES_ROOT\.txt\OpenWithProgids]
    "VSCode.txt"=""
    
    [HKEY_CLASSES_ROOT\.txt\PersistentHandler]
    @="{5e941d80-bf96-11cd-b579-08002b30bfeb}"
    
    [HKEY_CLASSES_ROOT\.txt\ShellNew]
    "ItemName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
      6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
      00,6e,00,6f,00,74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,2c,00,\
      2d,00,34,00,37,00,30,00,00,00
    "NullFile"=""
    

答案3

重命名HKCR\.txt\ShellNewHKCR\.txt\xShellNew[同样.bmp] 足以从上下文菜单中删除该条目:截屏

ShellNew我在计算机上找到的键:

PS HKCR:\>> gci -s | ? PSCHildName -eq 'ShellNew' | select -expand name

  HKEY_CLASSES_ROOT\.api\AcroExch.Plugin\ShellNew
  HKEY_CLASSES_ROOT\.contact\ShellNew
  HKEY_CLASSES_ROOT\.fdf\AcroExch.FDFDoc\ShellNew
  HKEY_CLASSES_ROOT\.library-ms\ShellNew
  HKEY_CLASSES_ROOT\.lnk\ShellNew
  HKEY_CLASSES_ROOT\.odg\LibreOffice.DrawDocument.1\ShellNew
  HKEY_CLASSES_ROOT\.odp\LibreOffice.ImpressDocument.1\ShellNew
  HKEY_CLASSES_ROOT\.ods\LibreOffice.CalcDocument.1\ShellNew
  HKEY_CLASSES_ROOT\.odt\LibreOffice.WriterDocument.1\ShellNew
  HKEY_CLASSES_ROOT\.pdx\PDXFileType\ShellNew
  HKEY_CLASSES_ROOT\.rtf\ShellNew
  HKEY_CLASSES_ROOT\.secstore\AcroExch.SecStore\ShellNew
  HKEY_CLASSES_ROOT\.xdp\AcroExch.XDPDoc\ShellNew
  HKEY_CLASSES_ROOT\.xfdf\AcroExch.XFDFDoc\ShellNew
  HKEY_CLASSES_ROOT\.zip\CompressedFolder\ShellNew
  HKEY_CLASSES_ROOT\CLSID\{a5a3563a-5755-4a6f-854e-afa3230b199f}\ShellNew
  HKEY_CLASSES_ROOT\Folder\ShellNew
  HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{a5a3563a-5755-4a6f-854e-afa3230b199f}\ShellNew

相关内容