How to Exclude Items from Taskbar Pinning and Recent/Frequent Lists
Applications, processes, and windows can opt to make themselves unavailable for pinning to the taskbar or for inclusion in the Start menu's Most Frequently Used (MFU) list.
There are three mechanisms to accomplish the exclusion of items from taskbar pinning and recent/frequent lists:
- Add the NoStartPage entry to the application's registration as shown in this example:
HKEY_CLASSES_ROOT Applications Example.exe NoStartPage
The data associated with the NoStartPage entry is ignored. Only the presence of the entry is required. Therefore, the ideal type for NoStartPage is REG_NONE.
Note that any use of an explicit Application User Model ID (AppUserModelID) overrides the NoStartPage entry. If an explicit AppUserModelID is applied to a shortcut, process, or window, it becomes pinnable and eligible for the Start menu MFU list.
- Set the System.AppUserModel.PreventPinning property on windows and shortcuts. This property must be set on a window before the PKEY_AppUserModel_ID property is set.
- Add an explicit AppUserModelID as a value under the following registry subkey as shown in this example:
HKEY_LOCAL_MACHINE Software Microsoft Windows CurrentVersion Explorer FileAssociation NoStartPageAppUserModelIDs AppUserModelID1 AppUserModelID2 AppUserModelID3
Each entry is a REG_NULL value with the name of the AppUserModelID. Any AppUserModelID that is found in this list is not pinnable and not eligible for inclusion in the Start menu MFU list.
Be aware that certain executable files, as well as shortcuts that contain certain strings in their names, are automatically excluded from pinning and inclusion in the MFU list.
If any of the following strings, regardless of case, are included in the shortcut name, the program is not pinnable and is not displayed in the most frequently used list:
- More Info
- Read me
- Read First
- What's New
The following list of programs are not pinnable and are excluded from the most frequently used list:
The preceding lists are stored in the following registry values.
HKEY_LOCAL_MACHINE Software Microsoft Windows CurrentVersion Explorer FileAssociation AddRemoveApps AddRemoveNames HostApps