Sign in to follow this  
Followers 0
probedrone

How to deploy software on remote machines

6 posts in this topic

Hi, newbie programmer here.

I was given a job to automatically deploy updates to all the remote servers, so I dont have to remote desktop to each machine individually and update the software myself.

I just started looking into autoit and finds that it has the potential, but right now all I know how to do is to install the software on my local machine. Does anyone have some advice or a sample code for a distribution script that can run my installation script for each remote server?

Share this post


Link to post
Share on other sites



you can use psexec to start a program on another machine.

Share this post


Link to post
Share on other sites

WSUS works for Microsoft updates.

Otherwise, here's a way to run an executable on a remote machine. From what I understand, the process won't have access to the network, so you may need to copy the file(s) locally first:

Local $objWMIService, $objProcess, $strComputer, $strEXE, $strOpts, $iRet
$strComputer = "MyComputer";replace with remote computer
$strEXE = "notepad.exe"
$strOpts = "c:\boot.ini"

$objWMIService = Objget("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& $strComputer & "\root\cimv2")

$objProcess = $objWMIService.Get("Win32_Process")
$iRet = $objProcess.Create($strEXE & " " & $strOpts)

BlueBearrOddly enough, this is what I do for fun.

Share this post


Link to post
Share on other sites

I have been looking into psexec and it looks pretty good. I have some questions though.

Can psexec install files that require user interactions, can it just do everything silently with the default settings? (Clicking the next button/choosing directory...)

The software I want to install is on a network, so how would I copy the folder to the remote server?

My autoit script needs parameters to run, but how can I pass it that when using psexec?

Share this post


Link to post
Share on other sites

Did you even look at my script? It uses psexec AND it's plugin based so the script that actually launches your program gets run on the remote computer and can do any automation you need.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0