Skip to content

CMS_AddComputerToPowerSchemeGroup

Adds the specified computer to the specified power scheme group

The power scheme group must exist. A computer can only be in one power scheme group, so it’s removed from its current power scheme group (if any).

CMS_AddComputerToPowerSchemeGroup(sUnit, sGroup) as Boolean

Not used. The function always applies to the computer that runs the package. Pass gsUnitName. PowerShell doesn’t have this parameter.

Group name. To specify more than one group, separate the names with commas, for example "Zone1,Zone2".

Boolean. True if the request was processed by the CapaInstaller server. The function also returns True if the group can’t be found, so use CMS_GetGroupMembership if you need to confirm the membership.

If bStatus Then bStatus = CMS_AddComputerToPowerSchemeGroup(gsUnitName, "CapaInstaller")

Scripting Guidelines

CMS_RemoveComputerFromPowerSchemeGroup Constants Package Property Variables Business Unit support