Set unit status
Description
Section titled “Description”Sets the status of a computer. If the computer already has the status, the function returns True without changing anything.
Syntax
Section titled “Syntax”SetUnitStatus(Byval UnitName as String, Byval Status As String) As Boolean
Parameters
Section titled “Parameters”UnitName (String)
The name or UUID of the computer. Only computers are supported. If several computers have the same name, use the UUID.
Status (String)
The new status
- “Active”
- “Inactive”
Other status values aren’t accepted.
Return value
Section titled “Return value”Boolean. The function returns True if successful, otherwise false.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetUnitStatus("Klient","Inactive")