Skip to content

Set unit status

Sets the status of the unit.

SetUnitStatus(Byval UnitName as String, Byval Status As String) As Boolean

UnitName (String)

The name of the unit

Status (String)

The new status

  • “Active”
  • “Inactive”

Boolean. The function returns True if successful, otherwise false.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetUnitStatus("Klient","Inactive")