"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

Windows 2000 and DOS

Change a User's Password

SUMMARY: Modify a user's password from the Windows 2000 DOS prompt or batch file.


 

If you are logged in as an administrator, you can change a user's password at the Windows 2000 DOS prompt, possibly by a batch file, via the NET USE command.

To change a user's password, enter the following at the prompt:

net user USERNAME *

Replace USERNAME with the user in question. You will be prompted for a password. If you'd rather have a batch file automatically change a user's password, replace * with the desired password. You won't be prompted to confirm the change.

One possible use is if you want to change everybody's password monthly. You can create a batch file with everyone's username, and every month you can run the batch file with a pre-determined set of new passwords or you can enter in new passwords at the prompt.



 

Got something to add? Post a comment!

Everyone is invited to submit comments. Registered users also receive their own visitor profile page with a summary of recent posts.
Register | Login

Your name:
 E-mail:
* Home/Blog Page:
Comment:
(Max chars: 5000)

* = optional field

 


Print This Tip

Get E-Mail When New Tips are Online

Return to the Windows 2000 and DOS page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )