Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

4 Answers 4

up vote 6 down vote accepted

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.

share|improve this answer
    
Thank you, this is what I was specifically looking for. –  RLH May 3 '12 at 14:17
    
You are Welcome. –  Akshat Mittal May 3 '12 at 14:23
    
Another way (though it only works when the application is not running), is to Shift + right-click on the taskbar icon, then choose Properties and edit the Target field. –  Indrek May 3 '12 at 14:41
    
@Indrek Its the Same Thing as I said in the Alternative Method. –  Akshat Mittal May 3 '12 at 14:43
    
@AkshatMittal Not exactly the same. –  Indrek May 3 '12 at 15:31

You can create a shortcut(such as a simbolic link with "mklink" command) to your command with the specified parameters and then pin it(the shortcut) to the Windows 7 Taskbar.

share|improve this answer

in a text document enter command

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

then do save as .bat file and it should run the line when you click the link.

Then if you need to you can do the right click add to start menu.

share|improve this answer

There is no programmatic way manage pinned items on the start menu or the taskbar. The problem with allowing you to modify pinned items is that you might try to do it; and that is wrong.

The problem is that people, who are not the user, might decide to add items to:

  • the desktop
  • the start menu fast items list
  • the quick launch menu
  • the favorites menu
  • the start menu pinned list
  • the taskbar pinned list

Suddenly these areas become a dumping ground for every bit of junk that someone thought was too cool.

Those areas are for users. Not installers. Not IT.

That is why there's no way for anyone, except the user, to pin items to the start menu or the taskbar. If they let you: you might try to do it. Microosoft learned their lesson.

Applications still try to stuff their garbage on the desktop, and the user's Quick Launch - even when there no longer is a quick launch. Even Git, the current darling, does it:

enter image description here

Developers cannot be trusted to do what's right.

To quote Raymond Chen:

Why is there no programmatic access to the Start menu pin list?

We learned our lesson the hard way.

In Windows 95, we gave programmatic access to the Start menu "Fast items" list - the items that appear at the top of the Start menu above the Programs list. This area was meant for the user to customize with their favorite links, but programs quickly saw the opportunity and spammed themselves into it every chance they got.

In IE, we gave programmatic access to the Favorites menu, and once again, programs spammed themselves into it.

In Windows XP we intentionally did not give programmatic access to the bold list of items at the top of the Start menu (the "pin list"). The pin list is for users to put their favorite icons. It is not the place for a program to decide unilaterally, "I am so cool. I am your favorite icon. I just know it. So I'll put myself there because, well, I'm so cool."

Because we knew that the moment we let people mess with the pin list, everybody would install themselves into it and it would become meaningless (and annoying).

Next Microsoft needs to figure out how to stop programs from adding shortcuts to themselves to the desktop.

Bonus Chatter

Looking up my old Quick Launch folder in Windows 7:

C:\Users\ian\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch

Shows Foxit Reader thought it simply had to add itself there.

The folder still exists, but now it's simply a decoy for ill-mannered applications to dump their garbage into.

The Desktop folder should go the same way.

share|improve this answer
    
what about C:\Users\user\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar ? it has, fine not pinned start menu icons afaik, but pinned taskbar icons –  barlop Nov 23 '13 at 23:25
    
@barlop For the love of god, please don't use it. –  Ian Boyd Nov 28 '13 at 20:42
    
There is nothing wrong with a user using it. And anyhow, The only way I have "used it", is dragging an exe or lnk to it and the lnk file is stored there. I'm not talking about a program using it obviously it is obscene that programs do that.. A solution isn't that these routes should be blocked off, but that zero cost open source software be developed that doesn't do that. But also nowadays "respectable" programs add toolbars by default unless ticked not to. And in that world, we must be aware enough not to tick boxes for quicklaunch and desktop icons, or worse, toolbars. –  barlop Nov 28 '13 at 22:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.