Set unit status
Description
Section titled “Description”Sets the status of the unit.
Syntax
Section titled “Syntax”SetUnitStatus(Byval UnitName as String, Byval Status As String) As Boolean
Parameters
Section titled “Parameters”UnitName (String)
The name of the unit
Status (String)
The new status
- “Active”
- “Inactive”
Return Value
Section titled “Return Value”Boolean. The function returns True if successful, otherwise false.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetUnitStatus("Klient","Inactive")