*bumb*

peter, seems that your post is getting missed on this forum...
just making a bumb not actually answering as I haven't done even one script using adsi.

better luck can be achieved with this type of script in related forum as they have less posts and experts looking more deeply...

just to give you another way on that locked thing, how about:
net user $username /active:yes /domain

cheers.
_________________________
!

download KiXnet