# CMS_GetContainer

> Returns the path to the Container to which the Unit belongs.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/cms-functions/cms-getcontainer/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Returns the path to the Container to which the Unit belongs.

### Syntax

CMS_GetContainer() As Boolean

Not supported

### Return value

Boolean, TRUE if function completed successfully. The result of the function will be stored in gsValue

### Example

**VBScript**

```vb
If bStatus Then bStatus = CMS_GetContainer()
If bStatus then xStatus = Job_WriteLog("Custom", "Container: " & gsValue, bStatus, True)
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/) [Business Unit support](/capainstaller/vb-scripting-library/addendum/business-unit-support/)
