Icon disappears from taskbar after reboot. Cause: Corrupt %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar cache. Fix: Unpin all, clear that folder, repin. 10. Summary Table: Best Method by Desktop Icon Type | Desktop icon is a shortcut to... | Best method | |----------------------------------|--------------| | Application (.exe) | Drag & drop to taskbar | | Folder | Pin explorer.exe with folder path | | Website | Pin browser with URL argument | | Control Panel item | Pin control.exe "item name" | | Recycle Bin | Not possible (use toolbar or third-party tool) | 11. Conclusion Adding a desktop icon to the taskbar is straightforward only if the icon represents an executable application. For folders, web links, or system virtual objects, a workaround involving direct targeting of explorer.exe , your browser, or control panel binaries is required. Understanding the distinction between the shell namespace (Desktop) and the taskband (Taskbar) is key to predicting whether an icon can be pinned natively.
Pinned icon opens wrong program or does nothing. Cause: The original desktop shortcut had command-line arguments or a specific working directory that you lost. Fix: Create a new shortcut to the .exe including arguments, then pin that new shortcut’s target. add desktop icon to taskbar
For most users: works 80% of the time. For the rest, locate the .exe target manually and pin that. Icon disappears from taskbar after reboot
$shortcut = (Get-ChildItem "$env:USERPROFILE\Desktop\*.lnk" | Where-Object $_.Name -like "*MyApp*").FullName $shell = New-Object -ComObject Shell.Application $target = (New-Object -ComObject WScript.Shell).CreateShortcut($shortcut).TargetPath $shell.Namespace(0x0a).ParseName($target).InvokeVerb("taskbarpin") Problem: "Pin to taskbar" option missing. Cause: Desktop icon points to a non-executable, or the shortcut is broken. Fix: Use Method 3 (Pin the actual .exe ). Conclusion Adding a desktop icon to the taskbar