set usr=java1
set pwd=java2
wmic useraccount where name='%username%' call Rename %usr%
net user %usr% %pwd%
echo 用户名:%usr% >c:\123.txt
echo 密码:%pwd% >> c:\123.txt
set usr=java1
set pwd=java2
wmic useraccount where name='%username%' call Rename %usr%
net user %usr% %pwd%
echo 用户名:%usr% >c:\123.txt
echo 密码:%pwd% >> c:\123.txt
转载于:https://www.cnblogs.com/tries/archive/2008/04/12/1150693.html