S
Schmidtmayer Marc
Hi all,
I've an application that creates users.
But I've got a question.
I can set the 'Change Pwd at Next Logon'.
This is what I do .. and it works ;-) :
usr.pwdLastSet = -1
BUT !!!
Whenever I set the setting 'Pwd Never Expires' ... the 'Change Pwd at
Next Logon' is GONE !!! Only the 'Pwd Never Expires' setting is set.
This my script :
usr.userAccountControl = ADS_UF_NORMAL_ACCOUNT +
ADS_UF_DONT_EXPIRE_PASSWD
usr.pwdLastSet = -1
So, After this code the 'Change Pwd at Next Logon' is NOT set !
Why ?
Can't they be set togother ??
Thanks for any help !
Marc.
I've an application that creates users.
But I've got a question.
I can set the 'Change Pwd at Next Logon'.
This is what I do .. and it works ;-) :
usr.pwdLastSet = -1
BUT !!!
Whenever I set the setting 'Pwd Never Expires' ... the 'Change Pwd at
Next Logon' is GONE !!! Only the 'Pwd Never Expires' setting is set.
This my script :
usr.userAccountControl = ADS_UF_NORMAL_ACCOUNT +
ADS_UF_DONT_EXPIRE_PASSWD
usr.pwdLastSet = -1
So, After this code the 'Change Pwd at Next Logon' is NOT set !
Why ?
Can't they be set togother ??
Thanks for any help !
Marc.