Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Windows 11
  • Intune
  • GitHub
  • About
CCMEXEC.COM – Enterprise Mobility

Modify Windows 11 Taskbar during OSD, Intune and GPO

Posted on October 11, 2021October 12, 2021 by Jörgen Nilsson

When it comes to modifying the TaskBar in Windows 11 nothing has changed since Windows 10. The only change is that the Start Menu part of the XML file is no longer used, it has been replaced by a .json file. More on that in the next post. More information can be found here on Microsoft Docs: Configure and customize Windows 11 taskbar – Configure Windows | Microsoft Docs
What do we need to modify the TaskBar then? We need an .XML file as shown below as sample. It will remove everything and replace it with Edge and File Explorer.

Sample .XML file

<?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 DesktopApplicationID="MSEdge"/>
        <taskbar:DesktopApp DesktopApplicationID="Microsoft.Windows.Explorer"/>
      </taskbar:TaskbarPinList>
    </defaultlayout:TaskbarLayout>
 </CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>

If we want to keep the default and only add pinned apps to the TaskBar, we remove the PinListPlacement=”Replace” from the XML file.

Modify Windows 11 Taskbar during OSD

We can use the same script as we did in Windows 10 to import a default start menu layout during OSD. I have mine in a folder called Windows 11 Taskbar which contains my Taskbar.xml file and a PowerShell script to import it. This script will import it during OSD as a default Taskbar that the end user can change as they want.

The PowerShell script consist of one-line, which will import the Taskbar.xml file during OS deployment.

Import-StartLayout -LayoutPath $PSScriptRoot\Startmenustd.xml -MountPath $env:SystemDrive\

My Task Sequence contains the following step which I have added to my “Windows 11 Customization” group with a condition to only apply on “Windows 11 64-bit”

Modify Windows 11 Taskbar using Intune

In Intune we can deploy a Custom Taskbar layout using the same Configuration Profile we did for the Start Menu layout in Windows 10. The policy must be applied before the end-user logs on for the first time.

  • Create a new Configuration Policy,
  • Under the Start section, import the .xml file you want to use.

Modify Windows 11 Taskbar using Group Policy

Deploying a custom Taskbar using Group Policy can be done using the “Start Layout” policy we used for Windows 10 to import Taskbar and Start Menu layout. It still works for the Taskbar part. Place the .xml file on a share so it is reachable for the client.
Note: The end user can no longer PIN any app to the Start Menu if this method is used!

In the Group Policy we point to our “taskbar.xml” file we want the computer to use.

If the Group Policy is applied to a computer that is already deployed it will overwrite the change the end user have done to the Taskbar on the next logon.

6 thoughts on “Modify Windows 11 Taskbar during OSD, Intune and GPO”

  1. Pingback: Customizing Windows 11 default Start Menu during OSD using LayoutModification.json - CCMEXEC.COM - Enterprise Mobility
  2. AW says:
    October 14, 2021 at 5:34 pm

    Using the Replace parameter below but still seeing the Search, Task View, Widgets, and Chat icons. I’ve tried all 3 methods of distribution (OSD, Intune, & GP) but still no success. All custom icons (e.g. MS Word) are added successfully.

    Reply
  3. Johnny says:
    November 30, 2021 at 11:01 pm

    The taskbar starts with the following links: Start, Search (glyph), Task View, Widgets, and Chat plus three additional Windows-provided links: File Explorer, Edge, and Store. These pins cannot be removed or replaced.

    Reply
    1. Jörgen Nilsson says:
      December 10, 2021 at 9:42 am

      Hi, Chat, search, task view and chat can be turned off in the registry https://ccmexec.com/2021/10/modifying-windows-11-start-button-location-and-taskbar-icons-during-osd-autopilot/
      For the rest the custom taskbar should take care of it.
      Regards,
      Jörgen

      Reply
  4. Madmin says:
    June 5, 2024 at 7:59 pm

    Is it just me, or does this not work in sccm osd anymore with the May ISO?

    Reply
  5. Sean says:
    June 20, 2024 at 7:06 pm

    I am noticing the same thing as the taskbar xml does not seem to import. Running it again now and will take a look at the logs and see if anything shows up.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
All code is provided "AS-IS" with no warranties.

Recent Posts

  • New settings in Intune Security Baseline Windows 11 24H2 -2504
  • Managing extensions in Visual Studio Code
  • Reinstall a required Win32app using remediation on demand
  • Administrator protection in Windows 11 – First look
  • Remediation on demand script – ResetWindowsUpdate
©2025 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT