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.
Dig deeper on Microsoft Active Directory
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.