Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: wntChgPswd behavior different between W2K and NT4
wntChgPswd("", username, oldPassword, newPassword)on a Windows 2000 workstation, the new password is effective immediately. That is, after I run a winbatch program with this command to change the password, then do a Ctrl-Alt-Del to lock the PC then a Ctrl-Alt-Del to unlock PC, the new password is accepted.
I then log out of this workstation.
If I run the SAME program using the SAME username that authenticates to the SAME domain, but this time use a Windows NT 4 workstation, the new password is NOT effective immediately. That is, after I run the program to change the password, then do a Ctrl-Alt-Del to lock the PC then a Ctrl-Alt-Del to unlock PC, the new password is NOT accepted. I still have to use the old password. The new password is not accepted until I log out of the workstation and log back in.
Curiously, if I do not use the Winbatch program to change my password and just use the Ctrl-Alt-Del method on the Windows NT 4 workstation, the new password DOES take affect immediately.
Is this expected behavior? Or am I missing something?
Thanks for your help in advance.
In Windows 2000 the API has an extra parameter or flag called "UpdateCachedLogonCredentials" that is not available in the Windows NT version of the same api.. hence the different behaviour.
Article ID: W15563
File Created: 2003:05:13:11:28:54
Last Updated: 2003:05:13:11:28:54