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

I am looking for a way in Linux to run a batch script on a remote Windows machine. I already searched some forums and the Internet and found e.g. this question.

It seems that the easiest way so far is using ssh. But do Linux or Windows also offer some built-in tools to solve this problem (something like at-command for Linux-to-Windows)?

share|improve this question
up vote 5 down vote accepted

I'm a big fan of winexe it's basically psExec that you can run from a *nix box.

share|improve this answer
Wow, I have a hacky screen-scraping RDP client that installs SSH that I'm never using again. – geocar Feb 1 '10 at 17:49

Perhaps you could use DoIt or the openssh windows port.

share|improve this answer

doit is great, 10x Pi

share|improve this answer

From a Windows machine you can use BeyondExec to execute anything on a Windows machine with a proper user name and password. So if you set up a VM with Windows and BeyondExec on the Linux machine, you should be able to do what you want.

Note that some virus scanners don't like BeyondExec. Which is hardly a surprise. :)

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.