{"id":105567,"date":"2021-08-17T07:00:00","date_gmt":"2021-08-17T14:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=105567"},"modified":"2021-08-17T07:06:13","modified_gmt":"2021-08-17T14:06:13","slug":"20210817-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20210817-00\/?p=105567","title":{"rendered":"Is it expected that custom default pinned taskbar items via LayoutModification.xml keep coming back each time the user logs on?"},"content":{"rendered":"<p>A customer was using the <code>LayoutModification.xml<\/code> 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.<\/p>\n<p>Yes, this is intended behavior, as spelled out <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/configuration\/configure-windows-10-taskbar#configure-taskbar-general\"> in the documentation<\/a>:<\/p>\n<blockquote class=\"q\"><p>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&#8217;s change will be overwritten the next time the configuration is applied.<\/p><\/blockquote>\n<p>The paragraph also tells you what to do if you want user changes to be preserved:<\/p>\n<blockquote class=\"q\"><p>To apply a taskbar configuration that allows users to make changes that will persist, apply your configuration by using Group Policy.<\/p><\/blockquote>\n<p>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 &#8220;I unpinned this app, but it keeps coming back&#8221; by preventing them being unpinned in the first place: Couple the <code>LayoutModification.xml<\/code> file with the <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/configuration\/windows-10-start-layout-options-and-policies\"> <code>NoPinningToTaskbar<\/code> policy<\/a>, which preserves existing pins but does not allow the user to pin new apps or unpin old ones.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes, so you need to plan accordingly.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-105567","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>Yes, so you need to plan accordingly.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/105567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=105567"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/105567\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=105567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=105567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=105567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}