I am trying to add Microsoft Office applications such as excel, word and outlook pinned to taskbar when I run a bat file or a script. reason>> I'm deploying Microsoft Office 2021 on windows 10 , always updated to latest version, once the Office is installed I want the shortcuts of Excel, Word and Outlook to be added to Taskbar, I don't want the shortcuts on desktop, I need them in Taskbar. I deploy over 500 Windows per day. Office app location is "C:\ProgramData\Microsoft\Windows\Start Menu\Programs".
from what I can find there is no simple CMD command to do it, I preferer not to install any other applications or applets.
CodePudding user response:
I know you said you want cmd batch file but Windows PowerShell is available on Windows 10 without any extra installation requirements and can achieve this. Therefore you may find this question helpful.
CodePudding user response:
Microsoft does support pinning programmatically. The hacks that are out there definitely will not work in a batch file, you need something more advanced.
In a professional setting you should use XML or TaskbarLinks in unattended install scenarios...