Pin and unpin applications from the taskbar and Start-menu

PowerShell-module with the ability to pin and unpin programs from the taskbar and the Start-menu in Windows 7 and Windows Server 2008 R2.

 
 
 
 
 
(15)
Add to favorites
8/5/2010
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • I can't get it to work in a logon script
    1 Posts | Last post November 11, 2013
    • Hi Jan,
      
      I've tested the PS script on a W7 64 bit workstation and it works like a charm.
      
      But now I'm trying to get this script to work by using a GPO with a logon script calling this module. And I cannot get it to work.
      
      I am using a Windows Server 2008R2 domain controller and a W7 64 bit workstation for the test.
      
      This is what I have done:
      1. I have put the PinnedApplications.psm1 file on the domain controller
      2. I use the powershell tab for the logon script and filled it with the following parameters:
      Script name: PinnedApplications.psm1
      Script parameters: Set-PinnedApplication -Action PinToStartMenu -FilePath "C:\WINDOWS\system32\notepad.exe"
      
      What am I doing wrong?
      
      Best regards,
      Saskia
  • Verb missing Windows Server 2012 R2
    1 Posts | Last post November 01, 2013
    • I also can not access the verbs via powershell. It is available via the gui but not via code. Does anyone have a work around
      
      
      Name
      ----
      &Open
      Run as &administrator
      Pin to Tas&kbar
      Restore previous &versions
      
      Cu&t
      &Copy
      Create &shortcut
      &Delete
      Rena&me
      P&roperties
  • Pin To Start verb missing in 8.1 / Server 2012 R2
    1 Posts | Last post October 23, 2013
    • What I see is that the Verb "Pin To start" is missing when you programmatically retrieve them from the shortcut object.
      Where if you right click, it is available in the context menu.
      
      So, something changed, the question is:  "where did it go?"
      
  • Unpinnable Programs
    1 Posts | Last post October 15, 2013
    • If you are getting "Verb [...] not found.", make sure you can pin it manually through the context menu. If it is missing the entries, it might be due to the filename containing anything from the registry key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileAssociation\AddRemoveNames". For example, a file called "helpdesk.exe" cannot be pinned because the name contains "help".
      Apparently this was introduced to reduce unwanted links from showing up in the frequently used list: http://blogs.msdn.com/b/oldnewthing/archive/2007/06/15/3301004.aspx
      If you don't care about that, removing entries from the registry key works (after the next logon). Otherwise you'll have to rename the executable.
  • Name of the pinned Application
    1 Posts | Last post September 27, 2013
    • First of all, great module.
      I want to use it to replace the current VBS script that I'm using.
      It works so far but the applications that are pinned have the text (Desktop) added to the name.
      
      Why is this added?
      Is there a way to prevent this?
  • pin exe from network share
    1 Posts | Last post July 19, 2013
    • Can I pin an exe (from a network share) to start menu?
      Set-PinnedAppli​cation-Action PinToStartMenu -Fi​lePath "\\server1\share1$\file.exe"
      I tried the above but I got:
      +             throw <<<<  "Verb $verb not found."
      ...
      ..
      .
      
      but I could pin the same exe when I copy it to local:
      Set-PinnedAppli​cation-Action PinToStartMenu -Fi​lePath "c:\temp\file.exe"
  • How do I use this?
    2 Posts | Last post July 11, 2013
    • I am confused, and not sure how to use this. I am very new to PowerShell.
      
      Do I put this somewhere, in a folder, and then call it via PS console?
      
      If so, where am I putting it?
      
      Thank you!
    • Just save it as *.psm1 and then run import-module *.psm1 (u can read this in the linked blogpost)
  • UnPinFromTaskbar Explorer.exe
    4 Posts | Last post May 11, 2013
    • Hello.
      Thanks for the snapin, it works greit. I have one question though:
      When I try to UnPin Explorer.exe with "Set-PinnedApplication -Action UnPinFromTaskbar -FilePath "$env:systemroot\explorer.exe"" I get this error:
      Verb Unpin from Taskbar not found.
      This is the default pinned explorer.exe. I can pin and unpin everything else.
      
      Any suggestions?
      
      Thanks
      Stein Ivar Holter
    • Hello,
      The scripts can work on Win7.But I want to use it on Win8.On Win8 Pin to taskbar can work correctly,but pin to start menu has error.
      By the way,On Win8,how can i pin(Upin) a EXE file on start screen(Metro) UI?
      Any suggestions?
      
      Best Regards
      Eric
    • @_Moon: In regards to Explorer.exe, I haven`t found a way Pin it to the taskbar using this module...it may be due to some special handling of this exe since it`s the desktop/shell executable.
      
      @ericdmsid: Since the Start-menu is removed from Windows 8 I think it`s expected that pin to Start-menu isn`t working. The pinning/unpinning functionality in the new Metro UI is probably using some other API.
    • Hello,
      
      On my side, I have created a Shortcut with following path : C:\WINDOWS\explorer.exe "%Path of my folder%".
      
      With this shortcut I'm able to pin it on my Start menu.
      It's not great but it works...
      
  • Doesn't work as a logon script
    1 Posts | Last post February 19, 2013
    • The script works great if you run it from a powershell prompt.  However, it doesn't seem to run any other way.
      
      I tried to make a .ps1 file that could be run as a logon script.  It doesn't work at all.
      
      Import-Module -name \\svr-dc1\Netlogon\PowerShell\PinnedApplication
      Set-PinnedApplication -Action UnPinFromTaskbar -filepath "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Media Player.lnk"
      
      I tried to run the script using powershell.exe
      powershell cleanupstartmenu.ps1
      
      I tried to run the script as a batch file using powershell.exe
      
      I tried adding the function in the script as part of a profile.
      
      anthing other than running the script from a PS command line produces this error
      Verb Unpin from Taskbar not found.
      At \\svr-dc1\Netlogon\PowerShell\PinnedApplication\PinnedApplication.psm1:65 ch
      ar:18
      +             throw <<<<  "Verb $verb not found."
      
      
      Has anyone gotten this to work?
  • File Explorer
    4 Posts | Last post February 19, 2013
    • Hello,
      great script. 
      Thx to this module i can add my icons to the taskbar using GPO with PS.
      
      One question
      The only icon i can`t add using the script is File Explorer of Windows.
      Is there an alternative way to fix this?
      
      Thx
    • Anybody?
    • Since the target of File Explorer isn`t an exe-file the function won`t work. I`m currently not aware of any workarounds. Suggestions are welcome.
    • Thx. i hope there are any options. All of the rest icons are working fine with this script!
1 - 10 of 16 Items