MSFTNEXT

How to Remove “Add to Favorites” from the Context Menu in Windows 11

You can remove “Add to Favorites” from context menu of files in Windows 11 if you don’t intend to use the feature. Since there is no setting in the Windows 11 GUI that allows you to do this, you will have to modify the registry.

In Windows 11 22593, Microsoft renamed the Quick Access section to “Home”.  The name of the pinned files section was also changed, which became “Favorites” starting from this build.

Adding files to this “Favorites” section is easy. You can add one or several files directly from their context menus. Obviously, this is very convenient.

Windows supports both shortcuts and files of any type for being added there. But it doesn’t allow adding, they can only be pinned to the quick access panel and the Home screen.

If you don’t like favorites in the context menu and don’t use the corresponding section in Home, you can hide the context menu. To remove the “Add to favorites” item from context menu, do the following.

Remove Add to favorites from menu in Windows 11

  1. Open the registry editor with the regedit command in the Run window (⊞ Win + R).
  2. Expand the branch: HKEY_CLASSES_ROOT\*\shell\pintohomefile.
  3. Create a new string parameter in the last pintohomefile subsection and name it ProgrammaticAccessOnly.
  4. Leave the parameter value empty. The settings take effect immediately, you do not need to restart the Explorer.

And that’s how you hide the Add to favorites item from the menu.

The ProgrammaticAccessOnly option is safe to use. It was implemented by Microsoft to hide various context menu items without restricting access to them by applications at the same time.

If you now open the context menu of a shortcut, file, or a selection of them in File Explorer, you will see that the “Add to Favorites” item is now removed.

Restore Add to favorites in the right-click menu

If you don’t want to have Add to favorites hidden in the menu, you need to unhide it and restore. You can do it quickly by removing the ProgrammaticAccessOnly setting you have added earlier.

To restores “Add to favorites” in the right-click menu, do the following.

  1. Open regedit from the Run dialog.
  2. Go to the HKCR\*\shell\pintohomefile key.
  3. Right-click the ProgrammaticAccessOnly in the right panel, and select Delete.
  4. Right-click any file in Explorer, so you will now see “Add to favorites”.

Add or remove the favorites menu with REG.EXE

In addition to the registry editing, you can use the REG.EXE tool. It allows you to modify the keys and values from the command prompt. You can copy and paste the command below and get the changes done in a second.

So, Press ⊞ Win + R to launch the Run window.

Next, copy and paste these commands.

To remove the “Add to favorites” menu.

reg add “HKCR\*\shell\pintohomefile” /v ProgrammaticAccessOnly /d “” /f

To add “Add to favorites” menu to the right-click menu, use the following command.

reg delete “HKCR\*\shell\pintohomefile” /v ProgrammaticAccessOnly /f

Press Ctrl + ⇧ Shift + ↵ Enter to run the command. It is important to press exactly Ctrl  + ⇧ Shift + ↵ Enter instead of ↵ Enter , as the key sequence will run the command as Administrator. Otherwise it will fail.

That’s all about remove the Add to favorites from the right-click menu in Windows 11.

Looks like you've read the post to the end. If you enjoyed it, please share it. You would greatly help our blog to grow!
Exit mobile version