views:

252

answers:

3

I maintain a number of load balanced web servers running Windows Server 2003. Today when I want to make a change to those servers, I use a tedious process of opening a remote desktop connection to each of those servers then running a command from the command prompt on each server. This takes a lot of time.

What I would like to do is run a command or write a script on one central server which accesses each of these other Windows servers and runs the same command on each of them. In this scenario I would want to run the command on 5 to 10 servers, but probably not more than 10.

The commands being run on the remote servers could be any of the following:

Copy a file Recompile - we already have a .bat file on each server for this. Source control (SVN) check out or update. Any other command that could be run from the windows command shell.

Also, I have domain administrator privileges as well as specific login and password info for each of these servers.

I know how to do this in Linux/Unix with SSH, so please do answers that say switch to Linux.

Thanks in advance for the help.

+2  A: 

PSExec

Alan
+3  A: 

You could try SysInternals PsExec.

Dave Webb
Thanks so much. This worked to do exactly what I was looking for.
Steve Stedman
+1  A: 

Install a RSH server on Windows.

RSH originally existed under UNIX and so is also present under Linux.

I used this solution about ten years ago for a distributed build system, which concurrently built a couple of applications on Windows, Solaris and HPUX. An RSH server ran on each machine and the controlling machine issued commands to them.

We used a third party RSH server, the name of which escapes me.

Windows Server used to ship with an RSH demon, but I think it's just been removed from the build.

Blank Xavier