run script/batch file on remote pc from a server

Discussion in 'Scripting' started by Danc383, Dec 10, 2007.

  1. Danc383

    Danc383 Guest

    Help, How can I run batch file on remote pc from a server using a script or
    batch file?.

    I want to run a script eg. (serverbat) on a server (SERVER1) that will run
    a script (clientbat) on a remote workstation (CLIENT1)

    EG I Run serverbat on SERVER1, CLIENT1 runs the clientbat batch file
     
    Danc383, Dec 10, 2007
    #1
    1. Advertisements

  2. Jeffery Hicks [MVP], Dec 10, 2007
    #2
    1. Advertisements

  3. I have an example VBScript program for this linked here:

    http://www.rlmueller.net/Deploy.htm

    This example deploys to all computers in a group, but you can either place
    one computer in a group or revise the program to deploy to a specifed
    computer. The program makes sure the remote computer is available, copies
    the executable (can be a batch file) to the remote computer, runs the
    program, waits for it to complete, then deletes the executable. The program
    maintains a log of each step for each computer. You need permissions and
    both computers must have WMI installed and not block remote access.
     
    Richard Mueller [MVP], Dec 10, 2007
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.