WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADSI
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2002:09:05:13:49:16
Last Updated: 2002:09:05:13:49:16