<h2>Intro</h2>
<p>One of the most common tasks I use ConnectWise scripts for is deploying software to our windows endpoints.</p>
<p>I&#8217;ve developed a habit of running PowerShell natively on the client than utilizing ConnectWise logic especially with software deployment as I find it is more reliable, which is why everything in this script is using PowerShell and is based off of a real use case of needing to deploy a softphone called 3CX to client workstations.</p>
<p>This script will download an .MSI from a direct download URL on the internet and then run the MSI installer with the following switches &#8211;</p>
<blockquote><p>ALLUSERS=1 /qn /norestart /log output.log</p></blockquote>
<p>You need to adjust your MSI installer switches depending on the software you are trying to install, as different MSI packages have different options. Common MSI command line options can be found <a href="https://docs.microsoft.com/en-us/windows/win32/msi/standard-installer-command-line-options">here</a>.</p>
<p>The end of the script can send an email which allows for easy tracking of PCs you can check on for success. You will need to adjust the recipient email.</p>
<h2>Method</h2>
<p>My script is a simple and lightweight 5 line instruction set covering downloading and executing the .MSI package:</p>
<p><img src="http://techzilica.com/wp-content/uploads/2022/06/number-2-1024x659.jpg" alt="ConnectWise Automate Script" loading="lazy" srcset="http://techzilica.com/wp-content/uploads/2022/06/number-2-1024x659.jpg 1024w, http://techzilica.com/wp-content/uploads/2022/06/number-2-300x193.jpg 300w, http://techzilica.com/wp-content/uploads/2022/06/number-2-768x494.jpg 768w, http://techzilica.com/wp-content/uploads/2022/06/number-2.jpg 1422w" sizes="(max-width: 1024px) 100vw, 1024px" width="1024" height="659"></p>
<h2>Download</h2>
<p>I have made this script free for commercial use as long as it is not compeitive to TechZilica.com.</p>
<p><a href="https://mega.nz/file/aRgDSDbD#AtpIpMoSrw4OFHSkJ_VskaPDQltDvFQv7udLgbSTfyo" role="button"><br />
Download Now<br />
</a></p>

How to Deploy .MSI Software Packages Using ConnectWise Automate
