# Get Group Folder

> Gets the folder structure of a group.

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

## Description

Gets the folder structure of a group

## Syntax

GetGroupFolder(ByVal groupName As String, ByVal groupType As String) As String

## Parameters

groupName(String)

- Name of the group

*groupType (String)*

The type of group to retrieve.

- "Dynamic\_ADSI"
- "Department"
- "Dynamic\_SQL"
- "Static"

## Return value

A string containing the folder of the group, i.e. 'folder1\folder2'

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK")
oCMS.SetInstanceManagementPoint("1")
sFolderStructure = oCMS.GetGroupFolder("Dell OptiPlex 760 Win 7", "Static")
Wscript.echo sFolderStructure
```
