AutoIT password change script not picking up password
This is the script I have that shows users and then lets you input a password into a box and reset it via that. But I made it output to a msgbox to see its working and all passwords are reset to '25':
everything else i need it to do works, i can update descriptions and usernames etc, its just the password is coming up as that.
$passbox = GUICtrlCreateInput("", 750, 65, 50, 20)
$leftfqdn = ReadFQDNFromGUILeft()
$leftsam = _ADDNToSamAccountName ($leftfqdn)
$ObjUser = ObjGet("LDAP://" & $leftfqdn)
$objUser.Put ("pwdLastSet", 0)
MsgBox(0, "", "Password has been reset to " & $passbox & @CRLF & "User will be asked to change password at next logon")
its driving me mental!