Skip to content

Get unit description

Get the description for a unit 

GetUnitDescription(ByVal unitName As String, ByVal unitType As String) As String

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

String. The function returns the description for the unit.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.GetUnitDescription("Klient", "Computer")