Example 1: Huntress Agent – MSP Owned License
ImmyBot includes variables $LicenseFilePath or $LicenseValue (depending on the license specified) in Install/Update/Uninstall scripts.
Example 2: Customer Owned License – CrowdStrike
Let’s say you have multiple clients using CrowdStrike. The install script looks like this:
$Arguments = @"
/install /quiet /norestart CID=$LicenseValue
"@
$Process = Start-Process -Wait -NoNewwindow $InstallerFile -ArgumentList $Arguments -PassThru
if($Process.ExitCode -ne 0)
{
Get-Content $InstallerLogFile -Tail 50
}
Write-Host "ExitCode: $($Process.ExitCode)"
In the event the license is a file, Immy downloads the file and provides the path in $LicenseFilePath
$Arguments = @"
/c msiexec /i "$InstallerFile" /quiet /l*v "$InstallerLogFile" KEYPATH="$LicenseFilePath" ADDLOCAL="FX_PDFVIEWER,FX_SE,FX_FIREFOXPLUGIN,FX_OCR,FX_CREATOR,FX_CONVERTEXT,FX_CREATORWORDADDIN,FX_CREATOREXCELADDIN,FX_CREATOROUTLOOKADDIN,FX_CREATORPPTADDIN,FX_IFILTER,FX_SPELLCHECK" MAKEDEFAULT=1 VIEW_IN_BROWSER=0 CPDF_DISABLE=1 CPDF_SERVICE_AUTO_START=0 AUTO_UPDATE=0 CREATESHORTCUT=1 LAUNCHCHECKDEFAULT=0 CONNECTEDPDFLOG=0 EDITION=BUSINESS
"@
$Process = Start-Process -Wait cmd -ArgumentList $Arguments -Passthru;
if($Process.ExitCode -ne 0)
{
Get-Content $InstallerLogFile -Tail 50
}
Write-Host "ExitCode: $($Process.ExitCode)"