With the release of Windows 10 1607, some customization solution were modified. One of them is the ability to modify the Taskbar configuration. In a previous post, we provided many customization scripts and how-to that were made for Windows 10 version 1511. Modifying the Taskbar was one of those customization but it was more of a workaround than a planned how-to.
With Windows 10 1607, the Taskbar can be modified similarly to the Start Menu.
In this post, we will detail how to modify the Windows 10 Taskbar configuration using a SCCM Task sequence.
This could also be done as part of a Group Policy.
SCCM Windows 10 Taskbar Configuration Prerequisites
Using this Taskbar customization solution is only available for Windows 10 version 1607 and higher.
Before we begin
It’s important to understand the concept behind customizing the Taskbar. It use the same Layout Modification method as the Start Menu. It means that if you already use an XML to modify the layout of the Start Menu, you will need to use the same file with a new section in the XML. You can’t have an XML for the Start Menu and a separate one for the Taskbar. If you do, the last to be imported will be the only configuration applied to both Start menu and Taskbar.
Configure a StartMenu.xml layout
- Setup a Windows 10 start menu as we would like to have as default
[su_box title=”Note” style=”glass” title_color=”#F0F0F0″]If you do not wish to modify the Start Menu and leave it by default, you can skip this section and go directly to the Taskbar configuration section.
[/su_box]
- Start a PowerShell command window as administrator
- Enter the following command line to export the Start Menu
- Export-startlayout -path C:\temp\StartMenu.xml
- A StartMenu.xml is generated in the specified directory
More details can be found in this Technet article
Add Windows 10 1607 Taskbar configuration to StartMenu.xml
The easy part was to generate the StartMenu.xml file, the though part is ahead. There is no configure-and-export solution for the Taskbar. Instead, we must manually edit the sections in the XML file to include the desired configuration for the Taskbar.
- Replace the top section of LayoutModificationTemplate. This will “Enable” the Start Menu and Taskbar.
[su_box title=”LayoutModificationTemplate Before ” style=”glass” title_color=”#F0F0F0″]<LayoutModificationTemplate Version=”1″ xmlns=”http://schemas.microsoft.com/Start/2014/LayoutModification”>
[/su_box]
[su_box title=”LayoutModificationTemplate After ” style=”glass” title_color=”#F0F0F0″]<?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″>
[/su_box]
- Add a new section after the </DefaultLayoutOverride> section. This is where you’ll be adding your shortcuts. We will be adding Internet Explorer, Explorer, Outlook and Skype.
[su_box title=”CustomTaskbarLayoutCollection” style=”glass” title_color=”#F0F0F0″]<CustomTaskbarLayoutCollection PinListPlacement=”Replace”>
<defaultlayout:TaskbarLayout>
<taskbar:TaskbarPinList>
<taskbar:DesktopApp DesktopApplicationLinkPath=”%APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk“/>
<taskbar:DesktopApp DesktopApplicationLinkPath=”%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk” />
<taskbar:DesktopApp DesktopApplicationLinkPath=”%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Outlook 2016.lnk” />
<taskbar:DesktopApp DesktopApplicationLinkPath=”%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Skype Entreprise 2016.lnk” />
</taskbar:TaskbarPinList>
</defaultlayout:TaskbarLayout>
</CustomTaskbarLayoutCollection>
[/su_box]
The end result will look like this :
The order of apps in the XML file dictates the order of pinned apps on the Taskbar from left to right, to the right of any existing apps pinned by the user.
The following example shows how apps will be pinned: Windows default apps to the left (blue circle), apps pinned by the user in the center (orange triangle), and apps that you pin using the XML file to the right (green square).
More details can be found in this Technet article to edit the XML as you wish.
Add the Start Menu and TaskBar configuration to a Task sequence
We will now deploy our configuration using a Task Sequence.
- Go to Software Library \ Operating Systems \ Task Sequences
- Right-click and Edit your Windows 10 task sequence
- Select Add / General / Run Command Line
- Name : Set Start Menu Layout
- Command line : Powershell.exe Import-StartLayout -LayoutPath StartMenu\StartMenu.xml -MountPath C:\
- Check the Package box and specify your Windows 10 customization package
- Position this step after the Windows image has been deployed
Results
After a new deployment, the user profile will load with a modified Start Menu and Taskbar.
Default view :
Modified with the StartMenu.xml :
The order fits our XML file order. File Explorer is left because it’s a Windows default app.
Bonus – Hide Cortana from the Taskbar
If you want to see less or no Cortana at all in the taskbar, configure the following Regkey with a group policy preference :
- HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search
- SearchboxTaskbarMode DWORD
- 0 = Hidden
- 1 = Show search or Cortana icon
- 2 = Show search box
Here’s how the Registry configuration looks in Group Policy Preference :
Hope this help!
Jul Labro
11.25.2019 AT 12:15 PMIbbu
04.02.2019 AT 01:08 AMDVK
02.07.2019 AT 09:17 AMjavi
01.23.2019 AT 10:46 PMGreg
06.22.2018 AT 04:49 PMMayur
06.01.2018 AT 06:46 AMsvariell
04.09.2018 AT 10:06 AMRam
02.28.2018 AT 12:10 PMJonathan Lefebvre
03.01.2018 AT 01:15 PMScott
01.12.2018 AT 09:50 AMJustin Holloman
01.26.2018 AT 07:31 AMScottG
02.01.2018 AT 11:42 AMScott
12.29.2017 AT 02:00 PMJames
12.19.2017 AT 03:14 PMJonathan Lefebvre
12.20.2017 AT 11:48 AMMary
01.03.2018 AT 03:26 PMMary
01.04.2018 AT 08:58 AMKenny
08.03.2017 AT 06:56 AMJonathan Lefebvre
12.20.2017 AT 11:49 AMRobert
05.24.2017 AT 02:28 PMJonathan Lefebvre
05.24.2017 AT 02:33 PMMark
05.19.2017 AT 09:03 AMJonathan Lefebvre
05.19.2017 AT 09:19 AMLam Cake
03.09.2017 AT 11:42 AMJonathan Lefebvre
05.19.2017 AT 09:22 AMShane
03.06.2017 AT 12:03 PMJonathan Lefebvre
03.06.2017 AT 01:00 PMQWade
02.27.2017 AT 02:11 PMmjf
03.02.2017 AT 07:31 PMJonathan Lefebvre
03.01.2017 AT 02:43 PMbinary
02.25.2017 AT 01:47 PMJonathan Lefebvre
02.27.2017 AT 12:34 PM