Items unpinned from taskbar are back after restart/sign out on Windows 10

78

35

I have got a new installation of windows recently. Now when I do unpin items from taskbar that were there (IE, Edge, Explorer), they do come back after restart. A pinned chrome does not disappear though e.g.

Anything to fix this issue?

P.S. Just created a new user, and he has the same problem

P.P.S. Sign out is enough to get it back, no full restart needed

Ilya Chernomordik

Posted 2017-09-19T06:25:52.167

Reputation: 1 045

Answers

138

I had the same problem. Nothing works.

Finally, I found the XML file in my profile:

%LOCALAPPDATA%\Microsoft\Windows\Shell\LayoutModification.xml

The items were listed here in this section:

  </DefaultLayoutOverride>
    <CustomTaskbarLayoutCollection PinListPlacement="Replace">
    <defaultlayout:TaskbarLayout>
      <taskbar:TaskbarPinList>
-- items were here - removed
      </taskbar:TaskbarPinList>
    </defaultlayout:TaskbarLayout>
  </CustomTaskbarLayoutCollection>

Maybe this will help someone.

lucky62

Posted 2017-09-19T06:25:52.167

Reputation: 1 496

I have found items in there as well, will try to delete them and see if it works – Ilya Chernomordik – 2018-01-16T08:35:22.103

I tried removing the items and even the file, but not work... Windows 10 Pro 10.0.16299 – Kelvin Hu – 2018-09-04T05:33:00.063

This worked for me on Win10 Enterprise v.1803, thanks! – Tim Klein – 2018-10-31T14:54:48.837

That file doesn't exist on my hard drive, nor does a text search for CustomTaskbarLayoutCollection or DefaultLayoutOverride in my AppData folder yield any results... there is a DefaultLayouts.xml file in the location you specified, but it seems to contain data for the default start menu layout (which I don't use, since ClassicShell is so much better). Any other options where that setting might live (on Win 10 Pro)? – Amos M. Carpenter – 2018-12-25T00:44:59.033

In my case I had to edit C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml – TrevorWiley – 2019-09-10T13:11:37.783

This worked, thanks! I commented out the entire <CustomTaskbarLayoutCollection> section. To do this, type <!-- right before the <CustomTaskbarLayoutCollection> line, and then type --> after the </CustomTaskbarLayoutCollection> line. – bitsmack – 2019-11-13T07:11:44.057

Windows 10 Enterprise 1809 -- worked for me as well. Thank you! – Charles Clayton – 2020-02-04T17:12:15.517

3

First, go the following paths:

C:\Users\username\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

C:\Users\Public\company name\TaskBar (if this path doesn’t exist, ignore it)

Delete the items that you don’t want to show in taskbar.

Restart computer to see the result.

If no help, backup personal data, remove current account and create a new one, maybe your account is corrupted.

Good luck

Origami

Posted 2017-09-19T06:25:52.167

Reputation: 1 309

Thanks for the answer, the items are not there after I unpin them. They come back after restart though (interestingly enough Edge shortcut is not there but still is pinned). New user got the same probelm – Ilya Chernomordik – 2017-09-19T06:55:12.347

when those items come back, please try to delete them directly from explorer path rather than unpin. – Origami – 2017-09-19T07:58:40.060

There is a .bat file which could clear all pinned apps on taskbar, you could have a try. How to Reset and Clear All Pinned Apps on Taskbar in Windows 10 https://www.tenforums.com/tutorials/3151-reset-clear-taskbar-pinned-apps-windows-10-a.html

– Origami – 2017-09-19T08:00:50.560

Deleting items directly did not help unfortunately and I'd prefer not to run bat files on init if possible – Ilya Chernomordik – 2017-09-19T08:34:09.863

seems like your system is coming back to same state after restart regardless of what you do. could be a reason of malware or corrupted settings/registry – Joey – 2017-09-19T11:54:09.663

2This began after the clean installation of Windows on my machine, so I doubt it's malware, but a good question is how to uncorrupt it? :) – Ilya Chernomordik – 2017-09-19T13:54:02.827

3

It appears that this was some corporate policy from domain that have done that and it's not possible to turn off that easy, but anyway, domain rules are a possibility when this happens.

Ilya Chernomordik

Posted 2017-09-19T06:25:52.167

Reputation: 1 045

1

I managed to find a solution on Microsoft Technet.

I've also, personally found another way around it:

  1. Open the explorer or the run prompt and go to %userprofile%\AppData\Local\Microsoft\Windows\Shell
  2. Edit the LayoutModification.xml file using the Notepad or some other text-only editor
  3. Locate the <taskbar:TaskbarPinList></taskbar:TaskbarPinList> entry and in that entry remove the line <taskbar:... /> adding Edge
  4. Save that file and reboot.

This will not survive "major" updates to the system/Edge such as the April 2018 one, but you can simply do the above again to get rid of that impolite shortcut.

James Huang

Posted 2017-09-19T06:25:52.167

Reputation: 11

Hey James, welcome to Super User. Just an FYI, when linking to a solution on another site, it is preffered to restate the salient points of the linked solution in case the link becomes dead at a later date. Looking forward to seeing more from you in the future. – Cliff Armstrong – 2019-08-22T16:28:15.763

0

It's the default behavior. I was searching far and wide for the solution to this issue, and then I realized something:
The file LayoutModification.xml was simply not there.

So rather than try to look elsewhere for those stubborn icons, you could just remove them by creating your own file:

  1. Go to the path where the file is supposed to be: %APPDATA%\Microsoft\Windows\Shell\
  2. Open a text editor of your choice and create an empty file with the name LayoutModification.xml.
  3. Paste the following layout in(reference):
<?xml version="1.0" encoding="utf-8"?>
<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 PinListPlacement="Replace">
    <defaultlayout:TaskbarLayout>
      <taskbar:TaskbarPinList>
        <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories\Notepad.lnk" />
      </taskbar:TaskbarPinList>
    </defaultlayout:TaskbarLayout>
 </CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>

Notice the PinListPlacement="Replace" on line 8. That'll remove the old icons you have(bye bye annoying Edge and Store icons!) and add any you specify in the list(like the Notepad one I have here). Note that this doesn't affect the icons that you explicitly pin to the taskbar(those are controlled by the %APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar folder).

Note: If you find the need to add any more icons, don't trust names in Explorer! Go to the General tab of the shortcut(.lnk file) you want to add and copy the path from there. The Explorer tends to have different names for some folders - mine had a name of "Windows Accessories" for a folder and a path name of just "Accessories". If you put the wrong path in, your icon won't show.

cst1992

Posted 2017-09-19T06:25:52.167

Reputation: 142

-1

go to C:\Windows. search for edge. there will be a folder name something like MicrosoftEdge. either rename or delete this folder. restart computer

Anand Kumar

Posted 2017-09-19T06:25:52.167

Reputation: 1