Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Is it possible to run an executable on a remote machine using telnet?

I connect to a windows XP machine via telnet and then I execute the exe by issuing this simple command.


No errors, but I don't think the program run as it does not create a directory which it should. If I remote in to the remote machine uisng RDP and execute the run the command in the same way directly it works!

I have turned off firewall and any antivrius but that didn't make a difference. What else should I do?

share|improve this question
You may also be interested in psexec, which will allow remote execution of applications. – jscott Jun 20 '11 at 18:48
I am trying to switch away from psexec its caused me a lot of headache! Thanks for suggesting it though. Plus I need something universal so I can run commands on a linux box too. – Abs Jun 20 '11 at 18:49
On Linux the solution is definitively SSH! Using telnet as a "universal" for remote command execution system is pretty much unthinkable these days. – Caleb Jun 23 '11 at 20:41
up vote 4 down vote accepted

Have you thought of using SSH? I know the Cygwin provides the SSH server and runs as a service. Using SSH would be a better solution than using telnet, at minimum from a security point of view, and the fact that you can put a command on the SSH line to be run.

share|improve this answer
I second the SSH solution. If you don't like a Cygwin stack on your destination machine, you could try the CopSSH package ( – desasteralex Jun 20 '11 at 20:30

PSEXEC is the tool to use for this. Not TELNET. You say PSEXEC gave you a headache. But TELNET clearly isn't working - give it another shot.

share|improve this answer
Or at least explain which headaches telnet will prevent. – reinierpost Jun 24 '11 at 11:49

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.