中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-10 07:55
47,811 topics / 349,897 posts / today 2 new / 48,255 members
DOS批处理 & 脚本技术(批处理室) » [Solved] How do I change a password in a batch file?
Printable Version  883 / 2
Floor1 walu Posted 2004-01-05 00:00
高级用户 Posts 201 Credits 916
Can a batch file be used to do this: when the machine boots, two dialog boxes appear on the screen, one where entering the password lets you get in; the other provides password changing. After entering password change, it asks you to enter the old password; if it is correct, then enter the new password. That way the password is changed successfully. (The hard part is how to change the old password here?)

How exactly can this be done in a batch file?

[ Last edited by HAT on 2008-11-6 at 17:51 ]
Floor2 wwmmc Posted 2008-11-06 14:36
初级用户 Posts 62 Credits 35
@echo off
net user 用户名 *
pause

I don't really know either, I only know how to change the password, hehe. If you figure it out, tell me too!
Floor3 ccily2701 Posted 2008-11-06 16:55
初级用户 Posts 45 Credits 80 From jiangxi
Using a batch file to make dialog boxes is very hard
Change the password:

net user 用户名 新密码/add
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023