# Add Package to BusinessUnit

> Adds a package to a linked Business Unit.

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

## Description

Adds a package to a Business Unit.

## Syntax

Public Function **AddPackageToBusinessUnit**(ByVal **packageName** As String, ByVal **packageVersion** As String, ByVal **packageType** As String, ByVal **businessUnitName** 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)

***BusinessUnitName (String)***

The name of the business unit

## Return value

Boolean. The function returns true if the package is added to the business unit, otherwise false.

## Example

**VBScript**

|                                                                                                                                                                                                                        |
|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ```java<br/>Set oCMS = CreateObject("CapaInstaller.SDK")<br/>wscript.echo oCMS.SetInstanceManagementPoint("1")<br/>wscript.echo oCMS.AddPackageToBusinessUnit("Winrar","v3.0","1","HeadQuarterBronx")<br/><br/><br/>``` |
