Dos更改本机帐号


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


 

posted @ 2008-04-12 21:40  jdkbean  阅读(189)  评论(0)    收藏  举报