well, this won't work:
 Code:
$LStat = $objUser.IsAccountLocked

If $LStat = TRUE


as it actually says something like this on locked accounts:
 Code:
if -1 = 0
_________________________
!

download KiXnet