# CMS_AddUnitToWSUSUnAssignedGroup

> Adds the unit to the unassigned WSUS group, letting the unit be linked to (another) apropriate dynamic WSUS group.

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

#### Description

Adds the unit to the unassigned WSUS group, letting the unit be linked to (another) apropriate dynamic WSUS group.

### Syntax

**VBScript**

```vb
CMS_AddUnitToWSUSUnAssignedGroup() As Boolean
```

**PowerShell**

```powershell
[bool]CMS_AddUnitToWSUSUnAssignedGroup
```

### Parameters

none

### Return value

**VBScript**

Boolean, TRUE if function completed successfully.

**PowerShell**

Boolean, TRUE if function completed successfully.

### Example

**VBScript**

```vb
If bStatus Then bStatus = CMS_AddUnitToWSUSUnAssignedGroup()
```

**PowerShell**

```powershell
CMS_AddUnitToWSUSUnAssignedGroup
```

[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/)
