CMS\_RemoveComputerFromStaticGroup
Description
Section titled “Description”Removes a specified computer from a static group
For Business Unit support click Business Unit support
Syntax
Section titled “Syntax”:vb: CMS_RemoveComputerFromStaticGroup(sUnit, sGroup) As Boolean
:ps: [bool]CMS_RemoveComputerFromStaticGroup -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_RemoveComputerFromStaticGroup(gsUnitName, "CapaInstaller"):ps: PowerShell
Section titled “:ps: PowerShell” if (CMS_RemoveComputerFromStaticGroup -group 'windows12_test') { $cs.Job_WriteLog("Removed", "Computer removed from static group: 'windows12_test'")}Related functions
Section titled “Related functions”