# Get WSUS Group units

> Gets a list of units linked to a specific WSUS Group.

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

## Description

Gets a list of units linked to a specific WSUS Group

## Syntax

GetWSUSGroupUnits(ByVal WSUSGroupName As String) As ArrayList

## Parameters

***WSUSGroupName(String)***

The name of the WSUS Group to link the unit to

## Return value

The function returns an array of units. Each unit (unit) in the array is a joined line with the character defined with [Set splitter](/capainstaller/sdk-capainstaller-software-development-kit-functions/container-functions/set-splitter/).

- unit.Name
- unit.Created
- unit.LastExecuted
- unit.Status
- unit.Description
- unit.GUID
- unit.ID
- unit.Type.Name
- unit.UUID
- Unit.IsMobileDevice ("True" or "False")
- unit.location

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
Set aUnit = CreateObject("System.Collections.ArrayList") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
Set aUnit =  oCMS.GetWSUSGroupUnits("WSUS Default Group") 
for each item in aUnit 
  wscript.echo item 
next
```
