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

Customizing Taskbar and Start in Windows 11 22h2 with PowerShell

Posted on October 13, 2022October 13, 2022 by Jörgen Nilsson

In Windows 11 22H2 we have some great new options for the Start Menu layout which I really like, More Pins or More recommendations.

Start menu layout

There is no builtin way to configure the default for the end-user with which Start Menu layout to use. We get a lot of questions from end-users that they would like to have more pinned apps in the Start menu to make it easier to start them without clicking on more apps first. Which we now can!

I wrote a post on how to customize the layout using registry values: https://ccmexec.com/2022/04/windows-11-insider-start-menu-layout-registry-customizations/

Me and my colleague Sassan updated the script mentioned here to customize the taskbar with new features: https://ccmexec.com/2021/10/modifying-windows-11-start-button-location-and-taskbar-icons-during-osd-autopilot/
The Taskbar could look like this:

Sample left Start Menu



New features:
– Set the default for More Pins
– Set the default for More recommendations
– Apply to all existing profiles on the computer
– Writes a registry value which can be used for detection in a Win32app, making it possible to install using Intune as well both as a script and Win32app.

The script can be used with the following variables:
– RemoveTaskView = Remove Task View from the Taskbar
– RemoveWidgets = Removes widgets from the Taskbar
– RemoveChat = Removes chat from the Taskbar
– MoveStartLeft = Move Start to the left
– RemoveSearch = Remove Search from the Taskbar
– StartMorePins = Changes the default Start layout to More pins (22H2)
– StartMoreRecommendations = Changes the default Start layout to More recommendations (22H2)
– RunForExistingUsers = Modifies all existing profiles on the computer.

Sample syntax:
powershell.exe -noprofile -executionpolicy bypass -file CustomizeTaskbar.ps1 -RemoveWidgets -StartMorePins –MoveStartLeft

The script can be downloaded from GitHub here: PowerShell/Customize TaskBar and Start Windows 11 at master · Ccmexec/PowerShell · GitHub

Registry value used for detection can be changed in the script.

Registry value

In Intune we can use this for Win32App detection.
Win32app install syntax:
C:\Windows\Sysnative\WindowsPowerShell\v1.0\powershell.exe -noprofile -executionpolicy bypass -file CustomizeTaskbar.ps1 -RemoveWidgets -StartMorePins

Detection method:

Detection method

I have had many requests for this script so I hope it will be useful!

17 thoughts on “Customizing Taskbar and Start in Windows 11 22h2 with PowerShell”

  1. Robert says:
    December 14, 2022 at 8:42 pm

    Thank you for this awesome script. One thing I wanted to see if it could be done as well, can you remove the Microsoft Store app pin from the Taskbar with the script?

    Reply
  2. Johan Lindbergh says:
    December 20, 2022 at 2:33 pm

    Hi!
    thanks for the script.
    I can´t get it to work, the parameter for MoveStartLeft works but none of the other seems to work.

    Running it in a Task Sequence with the params:

    -RemoveTaskView -RemoveChat -RemoveWidgets -RemoveSearch

    anything else i need to do to get this working in the TS? 🙂

    Reply
    1. Jörgen Nilsson says:
      December 29, 2022 at 2:14 pm

      Hi, I just did a test again on Windows 11 22h2 and it works fine.
      I run it as an embedded script as well to test also works.
      /Jörgen

      Reply
  3. Lee says:
    January 3, 2023 at 7:12 pm

    Hi Jörgen,

    The script seems awesome and it executes fine.
    I use it on 22H2 as intended.
    Is it also supposed to run on localhost as it seems nothing changes?
    Also no change a new logon.

    I most likely am doing something wrong or I miss the usecase entirely.
    TIA
    Kind regards,
    Lee

    Reply
  4. Thomas says:
    January 26, 2023 at 12:28 pm

    i can’t seem to get it to work either.
    The script says all was successful but nothing changes

    Reply
    1. admin says:
      January 31, 2023 at 10:07 am

      Ar you running for existing users? or only to set the defaults?
      Regards,
      Jörgen

      Reply
  5. Mela says:
    July 7, 2023 at 2:45 pm

    Hi,
    I am also Looking like @Roberts how we can remove the Microsoft Store app….

    Br
    Mela

    Reply
    1. A. Terani says:
      August 3, 2023 at 12:27 am

      Microsoft Store app’s icon can be removed in registry or by its policy settings. [HKCU\Software\Policies\Microsoft\Windows\Explorer]
      “NoPinningStoreToTaskbar”=dword:00000001

      Only if we could find a similar one for Edge and stopping it from becoming the default browser and pdf viewer for each new user! One could only wish!:(

      Reply
  6. liam says:
    August 4, 2023 at 8:42 am

    Hi there

    What is the syntax to remove the taskbar and or everything?

    Cheers
    Liam

    Reply
  7. Frans Kluijtmans says:
    September 22, 2023 at 6:20 pm

    I’ve worked the script up and down, works great when used directly in PowerShell on computer.
    But when used with Intune Win32 app, it runs but fails constantly. Changed the Reg Keys to current user, but still same result.
    Strange thing is, the control registry key is created including the string value.
    Trying to install on 22H2 version of Windows 11.

    Reply
  8. Frans Kluijtmans says:
    September 25, 2023 at 3:10 pm

    Hello,

    Script looks good, thanks for that!
    Unfortunatly, I have not been able to run the script through Intune.
    First part, adding registry key for detection works, but the rest not.
    Only message, installation failed

    Reply
  9. Aviv says:
    December 25, 2023 at 2:40 pm

    It will change also the settings for new users?

    Reply
    1. Jörgen Nilsson says:
      January 11, 2024 at 1:36 pm

      Yes it will!

      Reply
  10. Menesh says:
    February 15, 2024 at 12:55 pm

    Hi Jörgen, I know Windows 11 23H2 is out but anyway to add this to your script to remove copilot Preview from taskbar.

    Reply
  11. Pingback: Windows 11 Multi-App kiosk – a first look - CCMEXEC.COM - Enterprise Mobility
  12. Lewis says:
    April 1, 2024 at 1:51 am

    Seems the remove search bar function is not working for all users on Windows 11 23H2, it will work for the current user logged in. but when switching profiles doesn’t keep setting

    Reply
  13. Testing says:
    May 11, 2024 at 9:31 am

    Ah, it looks like “S-1-5-21” is for domain\local users.
    Entra account SIDs look like: S-1-12-1

    Currently, in the script’s filter, it misses looping back on Entra users the login to the endpoint:
    Where-Object { $_.PSChildName -match “S-1-5-21-(\d+-?){4}$” }

    Is there a nice way to expand the filter to include Entra user SIDs, and adding more SID ranges?

    Thanks for the suggestions and script.

    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