How to Deploy Software with a minimal cost with PowerShell

Deploying software to endpoints is a like that whack-a-mole game. The moment an IT administrator does the research, creates the package, distributes the software to machines and gets it installed is the time to do it all over again.

Software is continually being updated especially for software vendors that practice Agile development practices. It’s impossible for administrators to keep up even in an SMB with only a few hundred machines or fewer.

Deploying software to endpoints consists of a standard process:

  • Figure out how to install the software silently
  • Package up the software
  • Define the target group of machines to push the software to
  • Distribute the software to the machines
  • Silently install the software

Because of this standardized process, this task is ripe for automating. There are a few tools on the market today that assist the administrator in this process like Microsoft’s System Center Configuration Manager (SCCM), Symantec’s Endpoint Management, Dell KACE and so on. These tools expedite the process, but still leave gaps and require to be customized to each environment.

One way to complement these tools to fill in the gaps (or even act as a simple replacement) is PowerShell. Writing PowerShell scripts to perform various software deployments steps allows complete flexibility in what, how and when software deployed.

Let’s check out a few ways that by utilizing various free, community tools and a little ingenuity an administrator can automate software deployments.

Because PowerShell can perform just about any task that it’s asked of, let’s go over and end-to-end solution using only PowerShell. Granted, this approach might not apply to larger organizations, but large organizations can gain some knowledge in their automation gaps while SMBs might be able to exclusively use PowerShell to deploy software to their clients.

First figure out the software you need to deploy. In this example, I’ll be using the Notepad ++ software package. I’ll first build a small script where we can define each machine to distribute this software to which will provide a launching pad for everything else. To save some time, I built an example script that is available for download.

I’d like to deploy this Notepad ++ software to my clients named PC01-WIN10 and LT01-WIN10.

Run the script like this:

& .Deploy-Software.ps1 -Client 'PC01-WIN10','LT01-WIN10' -InstallerFilePath C:npp.7.3.1.Installer.x64.exe -Verbose

Now if you would check each of the clients, you will now see that Notepad ++ has been installed.


Notice that by using PowerShell; an administrator can do just about anything that’s necessary to deploy software. However, this approach is a simple one. Deploying software to thousands of machines opens up a whole new suite of problems. But this PowerShell-only approach should have provided some good examples of just what’s possible to automate using PowerShell.

The next time you need to get a piece of software deployed, think about your options. If already using an expensive tool, by all means, continue to use that. However, always know that PowerShell can fill in any of those holes the tool may have or if it’s necessary just to do some ad-hoc deployments to a few machines here and there, that expensive tool may even be overkill.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s