Discussion Locked

Mass Password Result

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I need to reset about 200 users passwords. How could I do it all at once instead of one by one.

1 reply

by paul.cook

In a Win2K3 AD environment you can use dsquery user to find the users (e.g. in a specific OU) and pipe the results of that to a dsmod user command.

dsquery user "OU=Sales,OU=New York,dc=internal,dc=AcmeCorp,dc=com" -limit 200 | dsmod user -pwd ChangeThisNow! -u NetAdmin -p NetAdminPassword- mustchpwd yes

There are other ways using dsget and dsquery to create a text file that you can then import into excel and create the commands for each user, one per row and save as 1 big batch file. Inelegant, but effective.

This discussion is closed to new replies.