Solved

Pin a shortcut to the Start Menu

Posted on 2013-11-11
6
564 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
Comment Utility
0
 

Author Comment

by:WellingtonIS
Comment Utility
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
Comment Utility
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
Comment Utility
thanks will try...
0
 

Author Closing Comment

by:WellingtonIS
Comment Utility
Thanks!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

772 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

9 Experts available now in Live!

Get 1:1 Help Now