Run a updae.exe file on a remote computer with a script or using psexec

Posted on 2010-01-07
Last Modified: 2012-05-08
I'd like to run a adobeairinstaller.exe update with the -silent on numerous computers so it will run in the back ground, I have been able to use psexec to copy the file to all computers needing the update and now I'd like to be able to run, any ideas?

Server 2003 and all computers are Vista Enterprise on a domain. I don't want to use group policy, I'd like to do it with psexec or using a script in a  similar way.

Thank you,
Question by:dsterling
    LVL 35

    Accepted Solution


    psexec \\computername -u username -p pass "drive:\path\to\update.exe"

    If you have a file containing all the computernames:

    psexec @"drive:\path\to\file" -u username -p pass "drive:\path\to\update.exe"
    LVL 4

    Assisted Solution

    Here is the batch file that I use:

    @echo off
    for /F %%A in (\\server\share\allworkstations.txt) do (
       psexec \\%%A -u (username) -p (password) -i -c \\server\share\adobeairinstaller.exe -silent

    echo Done.

    Create the above batch file with your information, for the user make sure to either a domain admin account or local administrator account unless your users have extended priveleges to install.

    Secone you will want to make a notepad document with all of your computernames. PsExec reads it downward words so make sure to only include on computername per line example:

    and so on.. then save it allworkstations or whatever you would like but make sure to change the name above on the batch file. I usually keep this file where the install is but if you do not make sure to update the patch above on the patch file.

    Open command prompt... go to your pstools directory just drag and drop your batch file into the command prompt and hit enter...

    Author Closing Comment

    I had to modify the psexec script some, but I was able to get it to work.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    737 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

    20 Experts available now in Live!

    Get 1:1 Help Now