Originally Posted By: apronk
 Code:
$usr.SetPassword("newpassword") ;Sets the password to "newpassword"
$usr.Put("pwdLastSet", 0)       ;User has to change the pw as soon as he/she logs in
$usr.AccountDisabled = 0        ;Enables the account
$usr.SetInfo


Thanks apronk but the code is not working. When I check it for error it always fails. (except for the change password at next login) Not sure what I am doing wrong but this is driving me crazy!