have a go with this.

code:
$domain = getobject("WinNT://@ldomain")

$domain.filter = "group",""

for each $group in $domain
if substr($group.name,1,3) = "abc"
? $group.name + ".."
for each $user in $group.members
? $user.name
next
endif
next

if these are global groups and if you have local groups in the global groups, then the local groups will be returned in the $user object as well.

Use $user.class to filter out only user accounts.

Bryce

[ 02 May 2002, 18:57: Message edited by: Bryce ]