I have come across a problem I cannot solve. I have an application that allows users to reset their password in active directory. However I want this to be a "temp" password as it is emailed to them. I want to make it so the next time they login they have to change their password.
I have come across this line of code but it does not work for me. DirectoryEntry().Properties["pwdLastSet"].Value = 0.
It still will never "check" the box that says "User must change password at next logon". Any ideas?
by Iam_new_tothis via /r/csharp