Enabling/Showing the Links Toolbar on the Windows Taskbar via PowerShell


  • Hi,

    How can I enable/show the Links Toolbar by using PowerShell. 

    I am trying to do the equivalent of:

    - Right Click Windows Taskbar

    - Select "Toolbars"

    - Select "Links"

    -> Links Toolbar is now visible on the Windows Taskbar, when doing this manually.


    Thursday, November 14, 2013 8:10 AM


All replies

  • Try something like this

    $shell = new-object -com "Shell.Application"  
    $folder = $shell.Namespace('C:\Users\profilename\Favorites')    
    $item = $folder.Parsename('Links')
    $verb = $item.Verbs()
    $verb = $item.Verbs() | ? {$_.Name -eq 'Pin to Taskbar'}

    to get the name try this

    $shell = new-object -com "Shell.Application"  
    $folder = $shell.Namespace('C:\Users\profilename\Favorites')    
    $item = $folder.Parsename('Links')
    $verb = $item.Verbs() | GM
    $verb | Select -Property *

    Regards Chen V [MCTS SharePoint 2010]

    • Edited by Chen VMVP Thursday, November 14, 2013 12:35 PM
    Thursday, November 14, 2013 12:34 PM
  • Hi Chen,

    Thanks for the help.  When I get the list of Verbs, Pin to Taskbar is not available.  The following Verbs are available:


    &Pin to Start

    Restore previous &versions



    Create &shortcut



    So, I am able to Pin the folder to Start, but not Pin to the Taskbar.



    $folder = $shell.Namespace('C:\Users\<user>\Favorites')

    $item = $folder.ParseName('Links')

    $verbs = $item.Verbs()




    if ($ -match "(&Pin to Start)")


    echo"Pinning application to Start"




    Friday, November 15, 2013 12:43 AM
  • If it's not in the verb list, you can't do it from a script.

    I suspect there is no API to do this, simply because it would get abused, for the reasons listed here:

    Why is there no programmatic access to the Start menu pin list?


    • Marked as answer by P3RC3PTI0N Friday, November 15, 2013 5:59 PM
    Friday, November 15, 2013 1:19 AM
  • Thanks for the article Bill. It looks like it does provide Programmatic access to Pin to the Windows Start Screen (See above) and you can programmatically add links to the Favorites Bar and Pin Applications to the Task Bar (I'm doing both of these things via PowerShell), but yeah, I don't see a way to enable the Links Tool Bar.  I'm wondering if there may be a registry setting that determines if it is toggled on, since the "Links" Toolbar is one of the built in Tool Bars in Windows 8.  I'll browse around some more.  Thanks again for your help.
    Friday, November 15, 2013 6:46 AM
  • My First attempt was Registry - but it has whole lots of hex values and it's not possible too.

    Regards Chen V [MCTS SharePoint 2010]

    Friday, November 15, 2013 9:09 AM
  • The fact that you can use shell verbs to do some of this does not, in my opinion, really qualify as "programmatic access" because it is tied to specific localized strings and is thus not portable. The real point is that this stuff is supposed to be under the control of the user. However, some of it might be alterable via Group Policy.


    Friday, November 15, 2013 3:14 PM
  • The location of pinned apps is stored here

    C:\Users\UserID\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar

    I tried to push the Favorite Short Cut but failed :(

    Regards Chen V [MCTS SharePoint 2010]

    Friday, November 15, 2013 3:17 PM
  • That won't work if the path is in a different language or if the user profiles are somewhere else.

    This is why this kind of solution is really more of a hack and is not a portable, robust solution.

    Microsoft has not provided reliable programmatic access to these things for a reason.


    Friday, November 15, 2013 3:26 PM
  • Thanks Bill !!! Good Information.

    Regards Chen V [MCTS SharePoint 2010]

    Friday, November 15, 2013 3:27 PM
  • Thanks Bill and Chen. I agree that Pinning Applications, Pinning to Start, etc., in this way, is more of a hack. In my case, my environment is controlled and I'm not redistributing the code, so it will work for now.  Thanks again for all your help!
    Friday, November 15, 2013 5:58 PM