Sorry for the late code sample. But the groups are in an array of sorts in the sample below. Additional code can actually add select items into a KiXtart array if you like.



$object = GetObject("WinNT://dss_test,domain")
$object.filter = "group",""
For Each $group In $object
    $name = $group.Name
    $type = $group.groupType
    Select
        case $type & 2 $typename = " - Global Group"
        case $type & 4 $typename = " - Local Group"
        case 1         $typename = " - Unknown Type( " + $type + " )"
    Endselect

    ? $name + " " + $typename
Next



[ 04. February 2003, 01:35: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/