CMS\_AddComputerToReinstallGroup
Description
Section titled “Description”Adds the computer to the specified reinstall group
For Business Unit support click Business Unit support
Syntax
Section titled “Syntax”:vb: CMS_AddComputerToReinstallGroup(sUnit, sGroup) as Boolean
:ps: [bool]CMS_AddComputerToReinstallGroup -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_AddComputerToReinstallGroup(gsUnitName, "CapaInstaller"):ps: PowerShell
Section titled “:ps: PowerShell”if (CMS_AddComputerToReinstallGroup -group 'reinst') { $cs.Job_WriteLog("Added", "Computer added to reinstall group: 'reinst'")}Related functions
Section titled “Related functions”CMS_RemoveComputerFromReinstallGroup