Skip to content

Set unit name

Sets the namefor a unit 

SetUnitName(ByVal unitName As String, ByVal unitType As String, ByVal newUnitName As String) As Boolean

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

Name(String)

The name of the unit

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

VBScript

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