Hello All,

I am attempting to write a function which will attach to a group and all of it's members(that are computers) to an array.

Attaching to the group and parsing for computers works fine... however, I do not know how to add all of these elements into an array using kixtart.

Would someone please offer some advice.

Thanks

=====code=====

Function enumComps()
$objADsPath = GetObject("LDAP://CN=,DC=,DC=)

For Each $obj in $objADsPath.Members

if $obj.Class = "computer"
;array here

endif
Next
EndFunction