Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
If so, then after calling nwSetPassword(), you also need to make calls to nwModifyObject() to change the value of the "Password Expiration Time" [SYN_TIME syntax] attribute on the user's object so that the expiration is set to be in the past, thus forcing a password change [via a grace login] the next time the user logs in again. Remember that the time must be in UTC, not local time, so you have to reverse your local timezone offset when cooking up a date & time value to set for this attribute.
Article ID: W17080
File Created: 2007:07:03:14:28:12
Last Updated: 2007:07:03:14:28:12