Monday, March 3, 2008

Reset multiple user passwords in AD

http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci1053871,00.html

Output a list of the names by exporting them from AD. Then you can use a simply FOR statement to reset the accounts. Let's say your text file is names.txt:

FOR /F %I in (names.txt) do NET USER %I [password] /DOMAIN

Replace [password] with the password you want to reset the accounts to. You will of course have to be logged in with domain admin privileges.