Windows – Command line code to pin program to taskbar Windows 10

command linedeploymentshortcutstaskbarwindows 10

I'm trying to reimage several computers, and am making a batch file to run the basic commands. Is there a command line code that will allow me to pin programs to the task bar? For instance, Internet Explorer.

Best Answer

Opinion - Microsoft explicity does not want to provide a method for anyone to add/remove pin items for the user. They are worried about third party applications arbitrarily pinning and unpinning items as a way to influence which programs a user will run. Therefore they have made this very difficult on the latest versions of Windows 10.

Method 1 - There WAS a method for scripting this using VBScript which involved enumerating through FolderItem.Verbs and activating the one called "pin to taskbar". However Microsoft removed this item from the Verbs collection while leaving it available on the UI for manual selection with a mouse. There are many websites that explain exactly how to do this with a VB script but this method does not work on the latest versions of Windows 10.

Method 2 - Probably due to backlash from the enterprise community, Microsoft now provides a method through the use of Group Policy to create a default set of items to unpin or pin for a new user account but this does not appear to be useful for one-off customized pinning. An internet search for the following terms will lead to the info: group policy taskbar pin.

Method 3 - The other answer provided here, simply copying a link file to the User Pinned\Taskbar folder, WILL NOT WORK in current versions of Windows 10. It may have worked at some point but this does not work any longer.

Method 4 - There is a third party utility called SYSPIN. This is a standalone EXE that apparently works. The company or website is called TECHNOSYS.

Related Question