# Add package to management server

> Adds a package to a Management Server.

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

## Description

Adds a Package to a Management Server.

## Syntax

AddPackageToManagementServer(Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String, Byval ServerName as String) as Boolean

## Parameters

***PackageName (String)***

The name of the package.

***PackageVersion (String)***

The package Version.

***PackageType (String)***

The package type;

- 1 (Computer)
- 2 (User)

***ServerName (String)***

The management server to which the package is to be added to.

## 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.AddPackageToManagementServer("Acrobat Reader","v8.0","1","Server4") 
 
```
