@Mikkel Lund Knudsen Thanks for sharing your solution here. I am glad to hear that it is working now. To help others who have the same issue. Here, please let me write a brief summary for our issue:
Issue description:
=======================
Can't pin Microsoft Teams (work or school) to Taskbar
Resolution:
=======================
Try to use DesktopApplicationLinkPath instead of DesktopApplicationID.
XML format:
<LayoutModificationTemplate
xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
Version="1">
<CustomTaskbarLayoutCollection>
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<taskbar:DesktopApp DesktopApplicationID="Microsoft.CompanyPortal_8wekyb3d8bbwe!App"/>
<taskbar:DesktopApp DesktopApplicationID="MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe!App"/>
<taskbar:DesktopApp DesktopApplicationID="Microsoft.Windows.Explorer"/>
<taskbar:DesktopApp DesktopApplicationID="Microsoft.Office.OUTLOOK.EXE.15"/>
<taskbar:DesktopApp DesktopApplicationLinkPath="com.squirrel.Teams.Teams"/>
<taskbar:DesktopApp DesktopApplicationID="MSEdge"/>
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>
Thanks for your time and have a nice day!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.