Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I have two computers, both running Windows 7, on my home network, is there some way to write a script so that I can click on a single icon on the one computer and make the other computer execute a program?

Clearly, I could do this by accessing the other computer through remote desktop connection and then executing the program, but I would like to avoid (or at least automate) making the connection so I can just click a single icon to have it happen.

share|improve this question
Are you going to make me ask it? – Ignacio Vazquez-Abrams Mar 29 '12 at 21:09
@IgnacioVazquez-Abrams: Ask what? :/ – Tom Wijsman Mar 30 '12 at 8:50
up vote 1 down vote accepted

(assuming Windows)

You could write a batch file that calls PsExec, or create a shortcut to PsExec with the appropriate command line arguments.

share|improve this answer
Sorry, I should have specified Windows 7. One does dual boot with Ubuntu, but that isn't relevent here. I'll give PsExec a try. – TimothyAWiseman Mar 29 '12 at 22:11
@TimothyAWiseman: You need permissions set on the other computers use PsExec, or at least have their login detalis. – Tom Wijsman Mar 30 '12 at 8:51

Your Answer


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.