Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mass password reset 1

Status
Not open for further replies.

Kooch

Technical User
Feb 20, 2002
108
CA

So here's the scenario, we have a brand new Windows 2003 Server with a whole bunch of user accounts created (over 300). The person who set it up set everyone up with the same password with the 'user must change password on next logon' option. Unfortunately that person is no longer here and now that we actually want to deploy this server we don't have any clue what the generic password he set was.

Is there any way to reset the passwords for a whole group at once? Is there a third party tool which would do this or something? Or am I stuck going through every one of these accounts?

Thanks.
 
If you have a listing of your users in a text file you can try the following

@echo off
cls
for /F "delims==," %%i IN (userlist.txt) do NET USER \\%%i password

Try it on one account first, to see if it works.
 

That worked beautifully. Thanks so much!
 
Glad it worked, though you should remove the \\ before %%i since that references a computer and not a user.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top