Reset all passwords in an Active Directory OU

Next post: Domain Aliases in Zimbra Previous post: Reset Administrator Password on SBS 2008

Posted by al on 15 July 2010 | 0 Comments

Tags:

Sometimes we need to reset everyone's password on the network - for instance if we are doing a server/network migration and we need to access everyones accounts. With this little cmd snippet you can easily tweak it to reset everyone in a particular OU's password:

dsquery user -startnode "ou=Inner Org Unit,ou=Outer Org Unit,dc=DomainName,dc=local" | dsmod user -pwd NewPassword -mustchpwd yes

Post your comment

Comments

No one has commented on this page yet.

RSS feed for comments on this page | RSS feed for all comments