4.1.6 Create And Initialize a Machine Group
The following sequence of WSRM client actions can be used to create and initialize a new machine group on local machine:
Connect to the WSRM server by creating a ResourceManager COM object.
Get a pointer to the IWRMMachineGroup interface.
Call the CreateMachineGroup method with the following parameters:
bstrParentMachineGroupId can be either "Machine Groups", "Default" or the name of any existing machine group. The new machine group will be created with this machine group as the parent.
bstrMachineGroupInfo set to the machine group to be created, in the format of a MachineGroup element (section 2.2.5.17).
Release the pointer to the interface.