[Samba] Reset/change password for all users at once

Rowland Penny rowlandpenny at googlemail.com
Tue Sep 2 09:16:04 MDT 2014


On 02/09/14 15:38, Thoralf wrote:
> Hello,
>
> 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.
> Thanks
> Thoralf
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.

Rowland


More information about the samba mailing list