I want to find out if the 'Must change password on next logon' option is selected for a specific user.
For this I want to use ADSI. I have found a security property 'pwdLastSet' in the MDSI Help File that I want to check, but when I try to read it I get a message telling me that it was not found in the cache. Can anyone help me with this problem. Here is the VB code I have used.
Dim user as IADSUser
Set user = ("WinNT://domainname/username")
answer = user.Get("pwdLastSet")
I try to run this in win2000, but it must also work for NT.
If this isn't a good way to do this, do you have any other idea of how to do it?
Sorry I don't have any more poits to effer (new member). I hope that someone will help me anyway. I would be most grateful!