CMS\_AddComputerToPowerSchemeGroup
Description
Section titled “Description”Adds the specified computer to the specified power scheme group
Syntax
Section titled “Syntax”:vb: CMS_AddComputerToPowerSchemeGroup(sUnit, sGroup) as Boolean
:ps: [bool]CMS_AddComputerToPowerSchemeGroup -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_AddComputerToPowerSchemeGroup(gsUnitName, "CapaInstaller"):ps: PowerShell
Section titled “:ps: PowerShell”if (CMS_AddComputerToPowerSchemeGroup -group 'CapaInstaller') { $cs.Job_WriteLog("Added", "Computer added to power scheme group: 'CapaInstaller'")}Related functions
Section titled “Related functions”CMS_RemoveComputerFromPowerSchemeGroup