LeoLionHeart
Programmer
I need the user to change the password when they first logon.
The code above sets the tick box in AD to password never expires.
I have tried this
but the tick box for User must change password at next logon doesn't appear to be ticked.
Any ideas?
Code:
.Properties("userAccountControl").Value = ADS_USER_FLAG.ADS_UF_NORMAL_ACCOUNT Or ADS_USER_FLAG.ADS_UF_PASSWD_NOTREQD Or ADS_USER_FLAG.ADS_UF_DONT_EXPIRE_PASSWD
The code above sets the tick box in AD to password never expires.
I have tried this
Code:
.Properties("pwdLastSet")(0) = 0
but the tick box for User must change password at next logon doesn't appear to be ticked.
Any ideas?