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 there a way to run remote commands in a windows system just like you can in Linux using the "ssh -c" command.



share|improve this question

PSTools PSExec can do exactly that! :)

share|improve this answer
Does it have to be installed on each system that needs to be controlled or just the main server? Also this only runs on a windows box right? -- I guess this could work.. – Autobyte May 1 '10 at 3:36
Just on the system you're using it from. And yes, win only. – northirid May 1 '10 at 4:56

You can uses powershell remoting. Psexec often gets blocked by antivirus. Powershell remoting would be the most reliable way of performing remote commands.

share|improve this answer

I have Cygwin installed on most of my Windows machines. With it's OpenSSH port you can use ssh just as your can to any Linux/BSD/other machine.

If you don't want anything else that Cygwin offers copssh seems a popular alternative - it is basically just the OpenSSH port and its dependences extracted from Cygwin.

The pstools set (already mentioned by northirid in an earlier answer) are easier to setup if windows->windows is all you need but actually having a SSH service is very handy if you need a little more.

share|improve this answer

AT command is another way.

share|improve this answer

The beauty of PSexec is that it executes and if required, copies the files to run on the destination system and can use any credentials

share|improve this answer

From Unix / Linux, you have :

share|improve this answer

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.