Windows – Create and configure a Windows taskbar toolbar via a script

powershelltaskbartoolbarwindows

When I right-click a Windows taskbar toolbar, I can toggle some options such as Show Text, Show Title and Lock the Taskbar. I can also reorder the icons on the toolbar and set it's position.

How can I do the following via a script?

  • create a new taskbar toolbar
  • set the toolbar position
  • set the order of the icons
  • toggle Show Text
  • toggle Show Title
  • lock the toolbar

Best Answer

Most of the settings can only be altered by the user, this was a concious design decision by Microsoft. See here and here for some reasons why. If the user runs the script their taskbar could be adjusted. See here for an example.

Related Question