Running a command on multiple Windows servers

I support several load-balanced web servers running Windows Server 2003. Today, when I want to make changes to these servers, I use the tedious process of opening a remote desktop connection to each of these servers, after which the command from the command line on each server. It takes a lot of time.

I would like to execute a command or write a script on one central server, which accesses each of these other Windows servers and executes the same command for each of them. In this case, I would like to run the command on 5-10 servers, but probably not more than 10.

Commands executed on remote servers can be as follows:

Copy the file Recompile - for this we already have a .bat file on each server. Source Control (SVN) is checked or updated. Any other command that can be run from the Windows shell.

In addition, I have domain administrator rights, as well as special login and password information for each of these servers.

I know how to do this on Linux / Unix with SSH, so please answer, say, switch to Linux.

Thanks in advance for your help.

+4
source share
3 answers

You can try SysInternals PsExec .

+5
source
+3
source

Install the RSH server on Windows.

RSH originally existed under UNIX and therefore is also present on Linux.

I used this solution about ten years ago for a distributed build system that simultaneously created a couple of applications on Windows, Solaris, and HPUX. The RSH server was running on each machine, and the host machine issued commands to them.

We used a third-party RSH server whose name eluded me.

Windows Server is used to send with the RSH daemon, but I think it was just removed from the assembly.

0
source

All Articles