# CMS_RemoveComputerFromReinstallGroup

> Removes the computer from a reinstall group.

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

### Description

Removes the computer from a reinstall group

For Business Unit support click [Business Unit support](/capainstaller/vb-scripting-library/addendum/business-unit-support/)

### Syntax

**VBScript**

```vb
CMS_RemoveComputerFromReinstallGroup(sUnit, sGroup) As Boolean
```

**PowerShell**

```powershell
[bool] CMS_RemoveComputerFromReinstallGroup -group <string>
```

### Parameters

#### sUnit (String)

Unit name

#### sGroup (String)

Group name

### Return value

Boolean, TRUE if function completed successfully.

### Example

**VBScript**

```vb
If bStatus Then bStatus = CMS_RemoveComputerFromReinstallGroup(gsUnitName, "CapaInstaller")
```

**PowerShell**

```powershell
if (CMS_RemoveComputerFromReinstallGroup -group 'reinst_semester') {
  $cs.Job_WriteLog("Removed", "Computer removed from reinstall group: 'reinst_semester'")
}
```

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

### Related functions

[CMS_AddComputerToReinstallGroup](/capainstaller/vb-scripting-library/cms-functions/cms-addcomputertoreinstallgroup/) [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/)
