Solved

Pin a shortcut to the Start Menu

Posted on 2013-11-11
6
567 Views
Last Modified: 2013-11-21
Is there a code (bat file) to get a shortcut to be pinned to the Start Menu?
0
Comment
Question by:WellingtonIS
  • 3
6 Comments
 
LVL 27

Expert Comment

by:Jason Watkins
ID: 39639963
0
 

Author Comment

by:WellingtonIS
ID: 39641450
The reason for the question is because my users do not have access to right Clicking on  the machines.  They are extremely locked down so any and all shorts have to be dealt with by us (IT) installing them by using bat files along with PSexec.  I'm asking for a solution to be able to do this basically remotely so that my users can find something easily.  Perhaps I should have explained that in my initial question.  I didn't think about that.
0
 
LVL 37

Accepted Solution

by:
Gerwin Jansen earned 500 total points
ID: 39644270
There is (not an easy) way to do this using powershell, you need a PS module found on technet here and then this is your commandline to pin notepad.exe to the taskbar:
powershell -executionpolicy unrestricted -command "import-module c:\temp\pinnedapplication.psm1 ; Set-PinnedApplication -Action UnpinFromTaskBar -FilePath c:\windows\notepad.exe"

Open in new window

To unpin, use the UnpinFromTaskBar action instead. I've put the module in c:\temp

The script works for me, if you're considering powershell solution you can give it a try.
0
 

Author Comment

by:WellingtonIS
ID: 39644466
thanks will try...
0
 

Author Closing Comment

by:WellingtonIS
ID: 39666708
Thanks!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now