A customer was using the LayoutModification.xml
file in their operating system image in order to pin a few applications to the taskbar automatically. They found that if the user unpinned those items, that seemed to work okay, but once the user logged out and back in, the pinned items came back. They wanted to know if this was intended behavior.
Yes, this is intended behavior, as spelled out in the documentation:
If you use a provisioning package or import-startlayout to configure the taskbar, your configuration will be reapplied each time the explorer.exe process restarts. If your configuration pins an app and the user then unpins that app, the user’s change will be overwritten the next time the configuration is applied.
The paragraph also tells you what to do if you want user changes to be preserved:
To apply a taskbar configuration that allows users to make changes that will persist, apply your configuration by using Group Policy.
On the other hand, if your goal was to apply a configuration that users cannot change, then it is typical to hide the weirdness of “I unpinned this app, but it keeps coming back” by preventing them being unpinned in the first place: Couple the LayoutModification.xml
file with the NoPinningToTaskbar
policy, which preserves existing pins but does not allow the user to pin new apps or unpin old ones.
Thanks, I didn’t know that this was possible.
Probably because this is the exact opposite of how to allows users to make changes to the Start Menu that will persist.
Classic Microsoft