# Get unit description

> Gets the description for a unit.

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

## Description

Get the description for a unit 

## Syntax

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

## Parameters

***UnitName (String)***

The name of the unit

***UnitType (String)***

Type of Unit

- "Computer"
- "User"

## Return value

String. The function returns the description for the unit.

## Example

**VBScript**

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