Avis - Microsoft explicity ne want to provide a method for anyone to add/supprimer pin items for the utilisateur. They are worried about third party applications arbitrarily pinning and unpinning items as a way to influence which programmes a utilisateur will run. Therefore they have made this very difficult sur le latest versions of Windows 10.
Méthode 1 - There WAS a method for scripting this using VBScript which involved enumerating through FolderItem.Verbs and activating the one called "pin to taskbar". Cependant Microsoft supprimé this item depuis le Verbs collection while leaving it disponible sur le UI for manual selection avec a souris. Il y a many websites that explain exactly comment do this avec a VB script but this method ne work sur le latest versions of Windows 10.
Méthode 2 - Probably due to backlash depuis le enterprise community, Microsoft maintenant provides a method through the use of Stratégie de groupe to créez un par défaut set of items to unpin or pin for a nouveau utilisateur compte but this ne appear to be useful for one-off customized pinning. An internet search for the following terms will lead vers le info: stratégie de groupe taskbar pin.
Méthode 3 - The other answer provided ici, simply copying a link fichier vers le Utilisateur Pinned\Taskbar dossier, WILL NOT WORK in current versions of Windows 10. It may have a fonctionné at some point but this ne work any longer.
Méthode 4 - Il y a un third party utility called SYSPIN. C'est un standalone EXE that apparemment fonctionne. The company or website is called TECHNOSYS.