Solved

# How can I easily upgrade programs on my server?

Posted on 2009-12-18
395 Views
I have 25 servers, that I run the same program on...

Is there an easy way to automatically update the program?

It is a program I made.. just a single EXE..

So basically what I need is something that can access all 25 servers.. end task the process.. upload the new version .. overwrite the old version.. and then run the new version..

I am sick of logging into 25 servers to do this manually! lol
Any suggestions?
0
Question by:bail3yz

LVL 1

Accepted Solution

Scripting, probably the easiest way to do it.

Google for psexec.exe, it's a tool that allows you to remotely upload&execute an application.

If the servers are in AD - run it as a domain-wide administrator account (you'll use the same credentials on all the machines)

List all the target boxes in a file such as serverlist.txt

Then make a batch script.. something like the one below.

echo Starting update-exe-script on servers:
type serverlist.txt
pause
for /f %i in (serverlist.txt) do taskkill /s %i /im exefilename.exe & copy \\unc\path\to\new\version.exe \\%i\C\$\path\on\server.exe & psexec \\%i exefilename.exe

0

Author Comment

Thanks.. thats exactly what I was looking for!
0

LVL 2

Expert Comment

Hi

What OS are you running, if windows, you might be able to accomplish this with  a batch file but it will require some work.

0

## Featured Post

INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration, of the HP EVA 4400 SAN Storage. The name , IP and the WWN ID’s used here are not the real ones. ABOUT THE STORAGE For most of you reading this, you …
Usually shares are where we want them for our users and we tend to take them for granted. There are times, however, when those shares may disappear causing difficulty for your users. One of the first things to try is searching for files that shou…
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…