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:

  1. Connect to the WSRM server by creating a ResourceManager COM object.

  2. Get a pointer to the IWRMMachineGroup interface.

  3. 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).

  4. Release the pointer to the interface.