Thanks! Ya know what though, I expected to see an increase in time with your version, but it seems the same? Anyhow, I now have bigger problems...
We have +30,000 users on our domain. The list above takes 30 seconds to display. I need only to find users who belong to groups with the prefix abc. (i.e. abc.accounting, abc.purchasing)
This works but would probably take 30-45 minutes to develop a list. Any suggestions on improving performance?
code:
Break On
$DomObj = getobject("WinNT://@ldomain,domain")
$DomObj.filter = "user",""
For Each $User in $DomObj
For Each $Group In $User.Groups
If Left($Group.name,3)="abc"
Goto Pass
EndIf
Next
Goto Fail
:Pass
? $user.name
:Fail
Next
I'm not familiar with the possiblities of the filter method, this is most likely a good starting point though...
-Jim
_________________________
-Jim
...the sort of general malaise that only the genius possess and the insane lament.