# Set unit name

> Sets the name for a unit.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/unit-functions/set-unit-name/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Sets the namefor a unit 

## Syntax

```
SetUnitName(ByVal unitName As String, ByVal unitType As String, ByVal newUnitName As String) As 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**

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