win + R 打开“运行菜单”,然后执行:
添加到右键菜单
reg delete “HKCR\*\shell\pintohomefile” /v ProgrammaticAccessOnly /f
删除右键菜单中的项目
reg add “HKCR\*\shell\pintohomefile” /v ProgrammaticAccessOnly /d “” /f
参考
How to Remove “Add to Favorites” from the Context Menu in Windows 11 (msftnext.com)