Windows – How to pin a program to the Windows 7 Taskbar, with parameters

shortcutstaskbarwindows 7windows-registry

In my case, I have to login and manage user accounts on a specific PC on our network quite frequently. I just learned that I can use the Windows Computer Management Snap-in to connect to another PC using the following command line.

mmc c:\windows\system32\compmgmt.msc /computer:\\ComputerName

How can I do this for this application or any other application that takes parameters?

UPDATE

Thanks for the quick answers, guys. All will suffice, but I am curious, is there a way to change the "shortcut" that is the pin on the Task bar? Even if it's a registry hack?

If I can change the reference on the pin, I would have to manage a shortcut or bat file. Certainly, having a few shortcuts and pins aren't problematic, but they are still extra, unnecessary files if this can be done another way.

Best Answer

For the simplest method, you can create a shortcut anywhere and pin it to the Taskbar. If you want to edit a existing shortcut/pin, there are two methods:

  • Open %USERPROFILE%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar (copy-paste this in Run command box). This contains all your pinned shortcuts. You can edit the target properties of the shortcuts.
  • Right-click on the shortcut/pin, then right-click on the application (first selection on bottom), choose Properties and edit the target.

These both work the same way.