Discussion Locked
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.
Trending Windows Forum posts
Sort by Trending
0 helpful
10 replies
Question Locked
Do You Save Useful Windows Tutorial Videos for Later
0 helpful
7 replies
0 helpful
1 reply
Question Unanswered
Is WSL still relevant in 2026?
0 helpful
0 replies
0 helpful
2 replies