# CMS_RemoveComputerFromPowerSchemeGroup

> Removes a specified computer from a power scheme group.

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

### Description

Removes a specified computer from a power scheme group

### Syntax

**VBScript**

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

**PowerShell**

```powershell
[bool] CMS_RemoveComputerFromPowerSchemeGroup -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_RemoveComputerFromPowerSchemeGroup(gsUnitName, "CapaInstaller")
```

**PowerShell**

```powershell
if (CMS_RemoveComputerFromPowerSchemeGroup -group 'save_energy') {
  $cs.Job_WriteLog("Removed", "Computer removed from power scheme group: 'save_energy'")
}
```

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

### Related functions

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