|
|
本帖最后由 a66 于 2025-12-6 10:39 编辑
- @echo off
- setlocal
- :: 删除“还原以前的版本”菜单
- reg delete "HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f 2>nul
- reg delete "HKEY_LOCAL_MACHINE\Software\Classes\Directory\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f 2>nul
- :: 删除“固定到快速访问”菜单
- reg delete "HKEY_LOCAL_MACHINE\Software\Classes\Folder\shell\pintohome" /f 2>nul
- reg delete "HKEY_CLASSES_ROOT\Drive\shell\pintohome" /f 2>nul
- :: 删除“固定应用到任务栏”菜单
- reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer" /v "NoPinningToTaskbar" /t REG_DWORD /d "1" /f 2>nul
- :: 删除“撤销赋予的权限”菜单
- reg add "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked" /v "{F81E9010-6EA4-11CE-A7FF-00AA003CA9F6}" /t REG_SZ /d "" /f 2>nul
- echo 右键菜单已优化完成。
- pause
复制代码
|
|