Create and configure a Windows taskbar toolbar via a script

0

1

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

shamp00

Posted 2014-06-09T15:26:38.493

Reputation: 241

1All can be done using powershell since powershell can use C# library. Search the internet for Poweshell solutions. – S Nash – 2014-06-09T15:29:47.753

I suspect that when you change settings a desktop.ini file is created inside the toolbar with attribute hidden. Otherwise it is set through the registry. My knowledge is not sufficient enough to answer this, which is why I added a comment instead. It may help others write a solution. – LPChip – 2014-06-09T15:29:55.983

Thanks @SNash but I'd already searched. Seems it's not so simple...

– shamp00 – 2014-06-09T16:07:58.870

Yeah @LPChip I'd looked for a desktop.ini, but no luck. – shamp00 – 2014-06-09T16:08:32.257

Answers

0

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.

StephenP

Posted 2014-06-09T15:26:38.493

Reputation: 111