# Exist Unit On Management Point

> Checks whether a unit exists on the specified management point.

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

## Description

Gets the management point IDof which the Unit is linked to

## Syntax

ExistUnitOnManagementPoint(ByVal unitName As String, ByVal unitType As String, CMPID As Integer) As Boolean

## Parameters

***UnitName (String)***

The name of the unit

***UnitType (String)***

Type of Unit

- "Computer"
- "User"

***CMPID (Integer)***

- The ID of the Management Point

## Return value

 Boolean. The function returns the True if the Unit Exist on the Point. Else False

## Example

**VBScript**

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