首页 > 代码库 > 批处理批量创建90个用户

批处理批量创建90个用户

rem create90.bat
   rem 用net user命令创建90用户
   
for /L %%i in (1,1,9) do net user k0%%i     /add /active:yes /expires:never /passwordchg:no /passwordreq:no /times:all /usercomment:"管理员" /workstations:*
for /L %%i in (1,1,9) do net localgroup administrators k0%%i  /add

for /L %%i in (10,1,90) do net user k%%i   /add /active:yes /expires:never /passwordchg:no /passwordreq:no /times:all /usercomment:"管理员" /workstations:* 
for /L %%i in (10,1,90) do net localgroup administrators k%%i  /add