If all you need to do is list members of a computer group, try the OpenUnitGroupComputerMembersList2 method, followed by the GetUnitGroupComputerMembers3 method.
Here's an example:
(best viewed on the community site, since I'm adding as a screenshot)
- This example is in C#
- It makes use of a ComputerPropertiesRequired2 object to set the properties I want to see for each computer I'm about to list. In this example, the only property I'm retrieving is the "label" for each computer.
- GetSystemGroupUUID is called for obtaining the UUID for the "All Computers" group.
- OpenUnitGroupComputerMembersList2 is called with the UUID from the above method, to open the built-in system group for all computers. Reference: Unit Groups - CA Client Automation - 14.0 - CA Technologies Documentation. This returns a handle to the list of computers in memory, along with a variable that tells me the count of computers in the list.
- GetUnitGroupComputerMembers3 is then called from a loop, to request the properties from each computer that I requested, which in this example is only the label.