CMS_RemoveComputerFromReinstallGroup
Description
Section titled “Description”Removes the computer from a reinstall group
For Business Unit support, see Business Unit support
Syntax
Section titled “Syntax”CMS_RemoveComputerFromReinstallGroup(sUnit, sGroup) As Boolean[bool] CMS_RemoveComputerFromReinstallGroup -group <string>Parameters
Section titled “Parameters”sUnit (String)
Section titled “sUnit (String)”Not used. The function always applies to the computer that runs the package. Pass gsUnitName. PowerShell doesn’t have this parameter.
sGroup (String)
Section titled “sGroup (String)”Group name. To specify more than one group, separate the names with commas, for example "Zone1,Zone2".
Return value
Section titled “Return value”Boolean. True if the request was processed by the CapaInstaller server. The function also returns True if the group can’t be found or the computer isn’t a member of it.
Example
Section titled “Example”If bStatus Then bStatus = CMS_RemoveComputerFromReinstallGroup(gsUnitName, "CapaInstaller")if (CMS_RemoveComputerFromReinstallGroup -group 'reinst_semester') { $cs.Job_WriteLog("Removed", "Computer removed from reinstall group: 'reinst_semester'")}Related functions
Section titled “Related functions”CMS_AddComputerToReinstallGroup Constants Package Property Variables Business Unit support