Description
Removes a specified computer from a static group
For Business Unit support click here
Syntax
CMS_RemoveComputerFromStaticGroup(sUnit, sGroup) As Boolean
[bool]CMS_RemoveComputerFromStaticGroup -group <string>
Parameters
sUnit (String)
Unit name
sGroup (String)
Group name
Return value
Boolean, TRUE if function completed successfully.
Boolean, TRUE if function completed successfully.
Example
VBScript
If bStatus Then bStatus = CMS_RemoveComputerFromStaticGroup(gsUnitName, "CapaInstaller")
PowerShell
if (CMS_RemoveComputerFromStaticGroup -group 'windows12_test') { $cs.Job_WriteLog("Removed", "Computer removed from static group: 'windows12_test'") }