We have modified the Startmenu and Taskbar by importing an XML during the OSD with SCCM.
Import-StartLayout -LayoutPath "Start_Menu.xml" -MountPath "$env:SystemDrive\"
Within that XML we also specified the Taskbar modifications by using the documented Nodes:
<CustomTaskbarLayoutCollection PinListPlacement="Replace">
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Outlook.lnk" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Word.lnk" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Excel.lnk" />
<taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\PowerPoint.lnk" />
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
During some of the latest upgrades/updates to Windows 10 20H2 Build 19042.1110 the Taskbar modification is reapplied on every reboot.
Also already tested with 2021-08 CU - Win10 20H2 Build 19042.1165.
Apps, the user removes by "unpin" will get removed but reapplied after reboot.
Apps added by the user remain on the taskbar and will not get removed, even when that app is not part of the layoutmodification.
Did already some test with suggestions from older Windows Builds like "1809 - EnableCDP", but nothing changed.
When I edit the LayoutModification.xml in the users Appdata, then the new XML will be applied and if I remove some of the ICON's from the XML, this ICONS will be removed from the taskbar after the next reboot.
Any ideas?