Skip to content

Automation and scripting

CapaInstaller can be automated at two levels:

  • Inside a package — scripts that run on the client as part of installing, repairing, or maintaining software.
  • From the outside — scripts that drive the Console and back-end to automate administration or integrate CapaInstaller with other systems.

Which surface you use depends on which level you are working at — and, for in-package scripting, on whether you are writing new packages or maintaining old ones.

I want to… Use Language
Script a new software package (runs on the client) PowerPacks PowerShell
Maintain an existing package written in the older library VB Scripting Library VBScript (legacy)
Automate the Console / back-end from an external script or system SDK COM — VBScript, PowerShell, any COM language
Automate in CapaOne instead of the on-prem Console Execute PowerShell Snippet (PowerBricks) PowerShell

These libraries run on the client as part of a package’s install/uninstall logic. Both include CMS Functions — the functions a package script uses to talk to the CapaInstaller Management Server (VBScript: CMS Functions; PowerShell: PowerShell CMS Functions).

Section titled “PowerPacks — the recommended choice for new work”

PowerPacks are PowerShell-based and are the current way to script packages. They provide the $cs helper library, global variables, and CMS functions. Because PowerPacks run in a PowerShell Runspace, client systems require the Microsoft .NET Core Runtime 10.x, which is delivered as part of the CapaPacks subscription.

The VB Scripting Library is the original scripting library, organized by category (File, Registry, Application, Job, Network, and more).

The SDK exposes the CapaInstaller.SDK COM object, which you call from VBScript, PowerShell, or any COM-capable language to automate the Console and back-end: create and delete units and groups, manipulate packages, read hardware and software inventory, manage MDM, OS Deployment, WSUS, and VPP, and integrate CapaInstaller with other systems. Use the SDK when you are orchestrating the platform from outside — not when scripting what happens on a client during install.

CapaPacks is a paid subscription that delivers ready-made packages and runtimes (including the .NET Core Runtime that PowerPacks need) — it is not a scripting language, so you do not write CapaPacks. Do not confuse it with PowerPacks (PowerShell package scripting, above) or CapaOne PowerBricks (no/low-code automation in CapaOne).