I think I may need to flush -

$userobj = Nothing
$adsgroup = Nothing

each time it loops through.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's