How can I easily upgrade programs on my server?

Posted on 2009-12-18
Last Modified: 2012-05-08
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?
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
    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

    Open in new window


    Author Comment

    Thanks.. thats exactly what I was looking for!
    LVL 2

    Expert Comment


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

    please provide more details

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    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 (". 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 ( If you're interested in additional methods for monitoring bandwidt…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now