How to Stop Apps from Pinning Themselves to Taskbar on Windows 10?

Sometimes, installed applications on Windows may run on Windows startup i.e. Adobe Acrobat, Skype, etc. Likewise, installed applications may pin themselves on the Windows taskbar. These applications overwrite system settings thus even if you remove them from the taskbar, they would pin themselves again when the PC is restarted. Though pinned applications on the taskbar are easy to access but if they are in bulk (forming clusters), they may slow down the PC boot time, influence battery life, and generally affect the execution framework. Sometimes, it is also annoying to see multiple applications keep pinning themselves on your taskbar that sabotages your home interface.

Applications Cluster on Taskbar

Sometimes, users may not be allowed to make changes to the already pinned applications. This setting could be set by the very program that is constantly pinning itself to the taskbar. You may fix this by doing the following:

Note: If you are using Windows 10 Home Edition you won’t have Group Policy Editor Installed on your Windows by Default, However, you can follow this tutorial we have on how to access Group Policy Editor on Home Edition in Windows 10.

  1. Click Start, type gpedit.msc, and open it. This will open the Edit Group Policy prompt that contains both user and computer configurations.
    Opening the Edit Group Policy Prompt
  2. Navigate to Start Menu and Taskbar folder and double click Do not allow pinning programs to the Taskbar. This will open the settings prompt.
    Opening Concerned Setting
  3. Click Disabled > Apply > OK. As stated in the description in the image below, disabling this feature will allow you to make changes to the pinned programs to the taskbar.
    Disabling Feature Setting

Now you will be able to make changes to the taskbar settings. You are not done yet! Go through the following method to get rid of this problem, once and for all.

Modify DefaultLayouts.xml

Windows stores settings for its applications, features, or elements in the system files (normally hidden). The taskbar is a Windows element therefore, its settings are also stored in system files. To be exact, its settings file named as DefaultLayouts.xml is located in AppData folder of Windows 10. Settings are stored in the form of code. Many users resolved the concerning problem by removing code lines from this file, specifically for applications that pin themselves automatically to the taskbar. Please go through the following steps to do the same:

  1. Click Start, search File Explorer and open it.
    Opening File Explorer
  2. Copy-paste the following address in the address bar and press Enter. This will take you to a hidden folder where Windows stores settings file for the taskbar.
    Note: Make sure to edit your username in the location address.

    C:\Users\(yourusername)\AppData\Local\Microsoft\Windows\Shell
    Copy-pasting Address in Address Bar
  3. Right-click on the file and open with Notepad.
    Opening File with Notepad
  4. Press Ctrl + F keys on your keyboard to open Find box. Find box is a tool to find keywords present in a text file.
    Opening Find Box
  5. Type CustomTaskbarLayoutCollection and click on Find Next. CustomTaskbarLayoutCollection is a program node that contains code for the user’s custom taskbar layout settings i.e. pinned applications, notification pane, badges, etc.
    Searching Keywords
  6. Trace the application code lines (of applications you want to unpin) under <taskbar:TaskbarLayout> and remove them. In this case, we are removing all the application lines including TaskbarLayout stamps (selected items in the picture below).
    Note: taskbar:TaskbarPinList is a sub-node to CustomTaskbarLayoutCollection that contains code lines for all the applications that are pinned to the taskbar on your PC.

    Removing Pinned Apps Code
  7. Once done, click File > Save to save changes.
    Save Changes
  8. Restart your PC. This method will surely fix your problem.

It is also a good practice to disallow applications to have administrative access because in the opposite case, they tend to alter system settings without the user’s permission (as they don’t need them anymore). In such a case, the probability of problems like this one becomes very high. Therefore, our suggestion is to only allow an application with admin privileges after proper consideration to avoid these kinds of problems.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

11
    D2
    d2e Oct 3, 2021

    Thank you for this guide. For my computer taskbar configuration was in LayoutModification file instead of DefaultLayouts file. Those who are not using Windows 10 Pro are not allowed to run gpedit.msc. But modifying only CustomTaskbarLayoutCollection entries alone already worked.

    Reply
    PO
    potadoew Oct 18, 2021

    Uh what if you have a school laptop and this doesn’t show? Or is this for Windows 10?

      MZ
      Muhammad Zubyan Author Oct 19, 2021

      This is for Windows 10, Which windows do you have installed on your School Laptop?

    JE
    Joel Ericson Nov 9, 2021

    Thanks for the guide! Some corrections/points of notice:1. This does not work on Windows 10 Home edition, at all, since the group policy editor is missing.2. The actual, localization-independent, search string for the group editor is “gpedit”, not “edit group policy”. (For users of non-English windows versions like myself this is important.)

    Reply
      MZ
      Muhammad Zubyan Author Nov 9, 2021

      Updated!1. Please check the additional note that we have added to get access to Gpedit on Windows 10 Home Edition.
      2. You are right! We have fixed this issue.Thank you for your patience and input to improve our quality!

    JL
    Josh Lee Feb 12, 2022

    Thank you,
    I had only 1 issue:
    On my PC, the file was in the right location, but had a different name.

    Instead of editing: “DefaultLayouts.xml” I needed to edit “LayoutModification.xml

    Reply
      FO
      fox Mar 14, 2022

      was the same for me. had to find the section of code in the layout modification. bye bye xbox auto pinning!!!!

    JA
    Jan Apr 30, 2022

    delete DefaultLayouts.xml completly

    ER
    Eugene Rosenfeld May 28, 2022

    Much appreciated! As other noted, I needed to edit “LayoutModification.xml” rather than “DefaultLayouts.xml”. Worked like a champ. Goodbye Xbox app!

    MU
    Mursheem Jul 27, 2023

    The find box can’t find anything like that for me, i’ve tried the
    main way, 0 results
    Task, 0 results
    Custom, 0 results
    xbox, a couple of results but nothing about taskbar

    I don’t know if this matters but I have another file called LayoutModifications in the same folder, and there I can find But theres no code underneath that one

    Any clue what it could be?

      MZ
      Muhammad Zubyan Author Aug 12, 2023

      Is your “Show hidden files and folders” option enabled? because this file is hidden and might not appear in Search Results unless the option is enabled. Usually it’s located in following directory: C:UsersAppDataLocalMicrosoftWindowsShell