Scripting Question

Scripted Software Installation with initial disk space verification?

07/11/2016 911 views
Good afternoon Ninjas,

I've been working on a Kace script for silent SEP installations.

First it verifies the presence/absence of HKLM\SOFTWARE\Symantec\Symantec Endpoint Protection\AV. When an absence is detected, it first prompts the user with a maintenance message and then silently installs our latest SEP client. It's working perfectly.

However, in discussion with one of my sysadmins, he reminded me that I need to be wary of space constraints on a target PC, as Kace does not check for space before deploying a software item.

With that in mind, is there a convenient means that I can tie into one script that will allow me to do a disk space verification on C:\ (say over 2GB?) before deploying the software? I'm assuming perhaps I can do a BAT script dependency and then based on the output of that, save the output (some kind of IF/THEN?), and then apply that output to start or cancel the installation of the software?

I just don't know how to start or if there's even a better, more efficient way to do this.


-- Ray
Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author

The MSI will check for drive space before it attempts the install and throw an error code if it fails, so I wouldn't worry about it.

Besides, how many machines do you have where they don't have a few hundred mg's of free space?! That used to be a problem 20 years ago but not a big thing these days.

If your coworker wants piece of mind, setup a job that empties the TEMP folder of your machines and have it run once a week.
Answered 07/11/2016 by: vjaneczko
9th Degree Black Belt

  • Thank you for the response.

    Generally, we don't have space issues. We configure our PC's with 128GB SSDs to reduce the ability of people to store stuff locally and we push users to use group shares.

    However, there are a few users who still don't understand the concept of saving to the group share, or whom have rolled up years and years of email in PST files. I don't want them to miss getting SEP or a SEP update, so it was mostly a contingency concern.

    Otherwise, I imagine if I push this out and Kace find x number of PCs without SEP, I'll see in the script log if one didn't go through.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ