resety same password for all users

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I don't know how to reset same password once for all users and so the user's
properties in Windows 2000 Server.

please give advice,

Thank You
 
I don't know how to reset same password once for all users and so the user's
properties in Windows 2000 Server.

please give advice,

Thank You


You can reset a users password in the command from a CMD.EXE prompt or batch:

net user username newpassword /domain

You can use tip 7964 to get all user names, but you probably want to exclude the built-in accounts.

You could getusers>C:\users.txt.
and then remove the unwanted users from c:\users.txt

Then, in a batch

@echo off
for /f "Tokens=*" %%u in ('type c:\users.txt') do (
net user "%%u" newpassword /domain
)





Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
Back
Top