diff --git a/src/Configuration/custom.yml b/src/Configuration/custom.yml index b816005..f13098e 100644 --- a/src/Configuration/custom.yml +++ b/src/Configuration/custom.yml @@ -13,3 +13,4 @@ features: - features\personalization\dark-mode.yml - features\personalization\explorer.yml - features\personalization\taskbar.yml + - features\personalization\context-menu.yml diff --git a/src/Configuration/features/personalization/context-menu.yml b/src/Configuration/features/personalization/context-menu.yml new file mode 100644 index 0000000..89bdf0d --- /dev/null +++ b/src/Configuration/features/personalization/context-menu.yml @@ -0,0 +1,167 @@ +--- +title: Context menu +description: Context menu customization +privilege: TrustedInstaller +actions: + # Remove 'Give access to' from context menu + - !registryKey: {path: 'HKCR\*\shellex\ContextMenuHandlers\Sharing'} + - !registryKey: {path: 'HKCR\Directory\Background\shellex\ContextMenuHandlers\Sharing'} + - !registryKey: {path: 'HKCR\Directory\shellex\ContextMenuHandlers\Sharing'} + - !registryKey: {path: 'HKCR\Drive\shellex\ContextMenuHandlers\Sharing'} + - !registryKey: {path: 'HKCR\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing'} + - !registryKey: {path: 'HKCR\UserLibraryFolder\shellex\ContextMenuHandlers\Sharing'} + + # Remove 'Cast to device' from context menu + - !registryValue: + path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked' + value: '{7AD84985-87B4-4a16-BE58-8B72A5B390F7}' + data: '' + type: REG_SZ + + # Remove 'Share' from context menu + - !registryKey: {path: 'HKCR\*\shellex\ContextMenuHandlers\ModernSharing'} + + # Remove bitmap image from the 'New' context menu + - !registryKey: {path: 'HKCR\.bmp\ShellNew'} + + # Remove rich text document from 'New' context menu + - !registryKey: {path: 'HKCR\.rtf\ShellNew'} + + # Remove 'Include in library' from context menu + - !registryKey: {path: 'HKCR\Folder\ShellEx\ContextMenuHandlers\Library Location'} + - !registryKey: {path: 'HKLM\SOFTWARE\Classes\Folder\ShellEx\ContextMenuHandlers\Library Location'} + + # Remove 'Troubleshooting compatibility' from context menu + - !registryValue: + path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked' + value: '{1d27f844-3a1f-4410-85ac-14651078412d}' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked' + value: '{1d27f844-3a1f-4410-85ac-14651078412d}' + data: '' + type: REG_SZ + + # Remove '- Shortcut' text added onto shortcuts + - !registryValue: + path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer' + value: 'link' + data: '00000000' + type: REG_BINARY + + # Remove 'Print' from context menu + - !registryValue: + path: 'HKCR\SystemFileAssociations\image\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\batfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\cmdfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\docxfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\fonfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\htmlfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\inffile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\inifile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\JSEFile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\otffile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\pfmfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\regfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\rtffile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\ttcfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\ttffile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\txtfile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\VBEFile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\VBSFile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\WSFFile\shell\print' + value: 'ProgrammaticAccessOnly' + data: '' + type: REG_SZ + + # Add 'Install CAB' to context menu + - !registryKey: {path: 'HKCR\CABFolder\Shell\RunAs'} + - !registryValue: + path: 'HKCR\CABFolder\Shell\RunAs' + value: '' + data: 'Install' + type: REG_SZ + - !registryValue: + path: 'HKCR\CABFolder\Shell\RunAs' + value: 'HasLUAShield' + data: '' + type: REG_SZ + - !registryValue: + path: 'HKCR\CABFolder\Shell\RunAs\Command' + value: '' + data: 'cmd /k DISM /online /add-package /packagepath:\"%1\"' + type: REG_SZ +