Reset all user passwords within an ou to the same password

A quick and easy way to reset all the passwords for users in a particular OU is to run the following command in a command prompt window on the domain controller. The below will reset all the passwords to “password”.  Change your OU references to your own settings.

C:\>dsquery user OU=tech,OU=australia,DC=waynestorey,DC=com | dsmod user -pwd password

If you have more than 100 users within that OU then use the following command changing the number after -limit to a number greater than the number of user objects

C:\>dsquery user -limit 100 OU=australia,OU=tech,DC=waynestorey,DC=com | dsmod user -pwd password

Share

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment