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