Some shortcuts and apps are intentionally blocked from being pinned to the taskbar. This behavior is controlled by Windows’ Application User Model (AppUserModel) settings and related policies, not by a simple file attribute.
Windows can exclude specific executables or AppUserModelIDs from taskbar pinning and from the Start menu’s most-frequently-used (MFU) list. If the target of the shortcut matches one of these exclusion mechanisms, the taskbar will:
- Show a “denied” cursor when dragging to the taskbar
- Not show “Pin to taskbar” in the context menu
There are three supported mechanisms that can make an app or shortcut non‑pinnable:
-
NoStartPageregistry entry for the executable- Under
HKEY_CLASSES_ROOT\Applications\Example.exe(whereExample.exeis the app), the presence of aNoStartPagevalue makes the app unavailable for taskbar pinning and MFU. - Only the presence of
NoStartPageis required; its data is ignored. - If an explicit AppUserModelID is later applied, it overrides
NoStartPageand the app becomes pinnable again.
- Under
-
System.AppUserModel.PreventPinningproperty- This shell property can be set on windows and shortcuts.
- When set, it prevents the item from being pinned to the taskbar.
- It must be set before the
PKEY_AppUserModel_ID(AppUserModelID) is set.
- AppUserModelID listed under
NoStartPageAppUserModelIDs- Under:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\FileAssociation\NoStartPageAppUserModelIDs - Each value name is an AppUserModelID; any ID listed here is not pinnable and not eligible for the Start MFU list.
- Under:
If a particular program or its shortcut cannot be pinned while others can, it is likely affected by one of these mechanisms. To allow pinning, the responsible exclusion must be removed or avoided (for example, removing NoStartPage for that EXE, not setting System.AppUserModel.PreventPinning, or removing its AppUserModelID from NoStartPageAppUserModelIDs).
Note: Editing the registry or shell properties affects system behavior and should be done carefully, ideally by an administrator who understands the impact.
References: