are you sure about that?

Quote:

$ou.filter = $filter[0]




the .filter needs to be an array value, and that was what he was passing in his original code..

ok i m sure that his original code will work using that as a filter.

Code:

$ou = getobject("WinNT://@domain")
dim $filter[0]
$filter[0]="user"
$ou.filter = $filter
for each $User in $ou
? $user.name
next