Set unit name

Description

Sets the namefor a unit 


Syntax

SetUnitName(ByVal unitName As StringByVal unitType As StringByVal newUnitName As StringAs Boolean


Parameters

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • "Computer"
  • "User"

Name(String)

The name of the unit


Return Value

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


Example

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