?
Solved

Pin a shortcut to the Start Menu

Posted on 2013-11-11
6
Medium Priority
?
595 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
5 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 38

Accepted Solution

by:
Gerwin Jansen, EE MVE earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Unable to change the program that handles the scan event from a network attached Canon/Brother printer/scanner. This means you'll always have to choose which program handles this action, e.g. ControlCenter4 (in the case of a Brother).
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month17 days, 10 hours left to enroll

829 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