CMS\_RemoveComputerFromPowerSchemeGroup
Description
Section titled “Description”Removes a specified computer from a power scheme group
Syntax
Section titled “Syntax”:vb: CMS_RemoveComputerFromPowerSchemeGroup(sUnit, sGroup) As Boolean
:ps: [bool]CMS_RemoveComputerFromPowerSchemeGroup -group <string>
Parameters
Section titled “Parameters”sUnit (String)
Unit name
sGroup (String)
Group name
Return value
Section titled “Return value”:vb: Boolean, TRUE if function completed successfully.
:ps: Boolean, TRUE if function completed successfully.
Example
Section titled “Example”:vb: VBScript
Section titled “:vb: VBScript” If bStatus Then bStatus = CMS_RemoveComputerFromPowerSchemeGroup(gsUnitName, "CapaInstaller"):ps: PowerShell
Section titled “:ps: PowerShell” if (CMS_RemoveComputerFromPowerSchemeGroup -group 'save_energy') { $cs.Job_WriteLog("Removed", "Computer removed from power scheme group: 'save_energy'")}Related functions
Section titled “Related functions”CMS_AddComputerToPowerSchemeGroup