6

Is it expected that custom default pinned taskbar items via LayoutModification.x...

 3 years ago
source link: https://devblogs.microsoft.com/oldnewthing/20210817-00/?p=105567
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Is it expected that custom default pinned taskbar items via LayoutModification.xml keep coming back each time the user logs on?

Raymond

August 17th, 2021

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK