I am familiar with $user = getobject("WinNT://$domain/$userid,user") in order to query a single user object, but I cannot find how to enumerate all user objects in the active dir???

I checked the SDK and MSDN but found nothing...

Frustrating...

-Jim

*********************
Nevermind... Found it!

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

for each $userobj in $AD
if $userobj.class="User"

? $userobj.name
EndIf
Next
$AD=""



[ 02 May 2002, 17:28: Message edited by: jtokach ]
_________________________
-Jim

...the sort of general malaise that only the genius possess and the insane lament.