programmatically force a password change

  • Thread starter Thread starter Linda Mickelberry
  • Start date Start date
L

Linda Mickelberry

This is probably basic, but new to me. I'm creating
mailboxes and user accounts in Exchange with VB in a
windows scripting file. Is there a active directory
property that I can use to force a user to change their
password when the first open the account? Thanks.
 
Sure -- in the Active Directory Users and Computers "User Properties"
account
area there is a check box in the list for "change password on next logon".

Unless you are using a script file, the best practice is to create a
"template account"
with all necessary settings and use that to COPY to new user accounts.
Check
the box for the template account and just copy it to each of the new users.

(Also set all other properties you generally require before doing the copy.)
 
what you are looking for is pwdLastSet. To force a user to change password,
set that to 0 for the user's object.

HTH
Deji
 
Back
Top