Introduction
A short and sweet blog post to re-kickstart my blogging activities, after a long period focusing on cybersecurity and the increased cybersecurity threat towards organizations. For same reasons, my Windows 11 project has temporarily been on pause.
However, now I’m back working on Windows 11, showing how you can customize the taskbar during OSD (Operating System Deployment) with Configuration Manager using just PowerShell (and no source files).
And yes, we are still leveraging Configuration Manager for regular OSD. This still makes the most sense for our type of business. 🙂
PowerShell
Find the PowerShell script on my GitHub page here: Windows-11/Import-TaskbarLayout.ps1 at main · imabdk/Windows-11 (github.com)
The script is really simple, though the approach I’m using, creates the required XML for your, rather than including it as a source file in ConfigMgr.
Taskbar XML
The generated XML file is tailored for my needs. It replaces the entire taskbar layout and pins explorer, Edge and Outlook as the only shortcuts.
- For more insight on how to customize the XML itself, see this article on MS Docs: Configure and customize Windows 11 taskbar – Configure Windows | Microsoft Docs
- If required to suit your needs, make the relevant changes to the XML section of the PowerShell script
Configuration Manager
Run the script within your Windows 11 OSD task sequence, using the ‘Run PowerShell Script’ step.
For my various customizations (though I try to keep those at an absolute minimum), I’m using a nested task sequence:
When browsing the script in-console, you should have a view similar to below:
Result
As expected, once the device finishes OSD, the taskbar on Windows 11 is trimmed down to the most relevant. From here, the users can pin their own apps as needed.
ENJOY 🙂
Can this work on Startmenu ?
The start menu is done a tad differently with json, but sure the same concept can be used 🙂
See something like this post: https://ccmexec.com/2021/10/customizing-windows-11-default-start-menu-during-osd-using-layoutmodification-json/
Thank’s
Can we set up the start menu via GPO?
How do you disable the chat icon on the taskbar, with this? Can’t seem to find any documentation on this.
You can take a look inside the PowerShell script to see what I do.
I was unable to get this to function after mimicking exactly what was above. Nothing changed in the task menu. I applied this after applying the OS in the tasking sequence and booting into the OS
I forgot to mention this is Windows 11 22H2
hello,
for information it’s works perfectly in windows 10 21H2 🙂