# Get unit WSUS Group

> Gets the WSUS Group name for a unit.

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

## Description

Get the WSUS Group name for a unit 

## Syntax

GetUnitWSUSGroup(ByVal unitName As String, ByVal unitType As String) As String

## Parameters

*UnitName (String)*

The name of the unit

***UnitType (String)***

Type of Unit

- "Computer"
- "User"

## Return value

String. The function returns the WSUS Group for the unit.

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
wscript.echo oCMS.GetUnitWSUSGroup("Klient", "Computer")
```
