Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Removing User Must Change Password At Next Logon

Keywords:    Removing User Must Change Password At Next Logon

Question:

Has anyone had luck removing the "User Must Change Password At Next Logon" check in the W2K account properties with the ADSI Extender?

Answer:

Don't ask me why but you need to to use the WinNT name space. So try this:
sAdsiPath = "WinNT://MyDomain/MyUser,user"

sProperty = "PasswordExpired"

; 0 means not expired.
dsSetProperty(sAdsiPath, sProperty, 0)

Article ID:   W15048