Comment réinitialiser en masse les mots de passe de tous les utilisateurs d'une OU ?
Comment réinitialiser en masse les mots de passe de tous les utilisateurs d'une OU ?
Je suis a developer at mon organization, mais J'ai been tasked avec resetting le passwords on 10k e-mail users in an OU in Active Directory. J'étais given le proper permissions, alors sent le suivant [TechNet article](http://technet.microsoft.com/en-us/library/ee662253.aspx), mais Je suis pas sure où J'aimerais run this ou how exactly it works. I apologize si this question is too vague, mais Je n'étais pas sure où else I could ask (J'aimerais ask a sysadmin at mon organization, mais it'd take a tandis que for response). Could someone give me a rundown of what exactly this cmdlet does et how J'aimerais go about executing this?
Re: Comment réinitialiser en masse les mots de passe de tous les utilisateurs d'une OU ?
Much easier than that. Installez le (depending on votre flavour of votre workstation OS) [Remote Server Administration Tools](http://www.microsoft.com/downloads/en/results.aspx?freetext=remote+server+administration+tools&displaylang=en&stype=s_basic) so you get le AD DS tools. Don't forget to go into votre Windows Features in Control Panel to activez le correct toolsets.
Once you've done that, le suivant command will achieve votre desired result:
```
DSQUERY user "OU=myOU,OU=myUsers,DC=myDomain,DC=loc" -limit 0 | DSMOD user -pwd
```
~ Replace *"OU=myOU,OU=myUsers,DC=myDomain,DC=loc"* avec le distinguishedName of le OU containing le users to be changed
Once you've done that, le suivant command will achieve votre desired result:
```
DSQUERY user "OU=myOU,OU=myUsers,DC=myDomain,DC=loc" -limit 0 | DSMOD user -pwd
```
~ Replace *"OU=myOU,OU=myUsers,DC=myDomain,DC=loc"* avec le distinguishedName of le OU containing le users to be changed