# Get unit management server relation

> Returns a unit's linked management server.

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

## Description

Returns a unit's linked management server.

## Syntax

GetUnitManagementServerRelation(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 containing the path to the server

## Example

**VBScript**

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