can anyone help me out on this simple code? i am trying change passwords to a simple password in active directory when this script runs. It changes the password fine the problem becomes when i try to reset the User must change password at next logon option. At first i was thinking it was my LDAP query but like i said it changes the users password fine. And i already looked at the microsoft technet article:
here is the script:
strUserName = InputBox ("Enter the username"
Set objUser = GetObject("LDAP://OURDOMAIN/" & strUsername & ",user"
objUser.Put "pwdLastSet", 0
objUser.SetInfo
objUser.SetPassword "password"
here is the script:
strUserName = InputBox ("Enter the username"
Set objUser = GetObject("LDAP://OURDOMAIN/" & strUsername & ",user"
objUser.Put "pwdLastSet", 0
objUser.SetInfo
objUser.SetPassword "password"