rem SetUsers
;;设置用户名。
set User1=张三
set User2=李四
;;创建用户
net user %User1% 123 /add >nul
net user %User2% 123 /add >nul
;;加入管理员组
net localgroup Administrators %User1% /add >nul
net localgroup Administrators %User2% /add >nul
;;设置密码永不过期
WMIC.EXE Path Win32_UserAccount Where Name="%User1%" Set PasswordExpires="FALSE" >nul
WMIC.EXE Path Win32_UserAccount Where Name="%User2%" Set PasswordExpires="FALSE" >nul