Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Intune
  • GitHub
  • Windows 11
  • About the author
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!

  • Windows 11
  • Windows 11 Start Menu
  • Windows 11 Taskbar
  • 4 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

    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.

    Tweets by ccmexec

    Recent Posts

    • Configuring MS Edge Security Baseline v107 using Settings Catalog
    • Configuring Desktop App Installer using CSP and script?!
    • Customizing Taskbar and Start in Windows 11 22h2 with PowerShell
    • MMUGSE – physical event 2022-10-19 @Microsoft Reactor Stockholm.
    • Switch to Private Firewall profile on AAD joined when connected to specific network.

    ©2023 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