SHARE
Facebook X Pinterest WhatsApp

Wrapper Script for Software Deployments

Aug 22, 2000
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More




By John Paesano

I developed this script for software
deployments. It does a number of things but most importantly it is used to
detect the clients subnet then place the distribution server for that subnet
into a variable. We then take that variable and plug it into the command line.
This insures that a client will not pull an install over the WAN. The next piece
of the script writes to a log file to give us a success message in a log. There
is some configuration that has to be done on the distribution server ahead of
time but it is well worth it. We have a hidden share on all of our distribution
servers and inside that share is a folder for each package. Inside that folder
is a log file that the script writes to during the install.

I developed this script for software deployments.

Information such as the package started, the
server it is running the install from, and when it completes. This has proved to
be a real time saver when checking package status.

Sample output from log.

SMSTEST4 has successfully started the
installation from SMS01

*INSTALL COMPLETE*

In the example script that I have attached the
install generated a MIF file. Inside the MIF there is a success entry. I search
for the success entry and then write to my log on the distribution server that
the install is complete. Then it restarts the computer.

Download
SMS Installer Script

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
6 Best Linux Virtualization Software for 2024
What Is a Network Policy Server (NPS)? | Essential Guide
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.