[Samba] Reset/change password for all users at once
rowlandpenny at googlemail.com
Tue Sep 2 09:16:04 MDT 2014
On 02/09/14 15:38, Thoralf wrote:
> is there a quick way to reset or change the
> passwords for all users in my domain at once? I'd
> like to force my users to change their passwords
> when they log on to their machines next Monday.
You could write a script to get all your users from AD, then a for loop
with this list of users, then inside the loop change the users
'pwdLastSet' attribute to 0. Once the attribute is changed the user will
be able to login with their present password but will be asked to change it.
More information about the samba