Script to Add Users and Passwords
This articles explains how to add users and passwords from a command line script

You can script your user and group chores by taking advantage of the NET USER and NET LOCALGROUP command-line utilities. These commands enable you to add users, change passwords, modify accounts, add users to groups, and remove users from groups.

For local users, the NET USER command has the following syntax:

NET USER [username [password | * | /RANDOM] [/ADD] [/DELETE] [options]]


usernameThe name of the user you want to add or work with. If you run NET USER with only the name of an existing user, the command displays the user's account data.
passwordThe password you want to assign to the user. If you use * instead, Windows XP prompts you for the password; if you use the /RANDOM switch instead, Windows XP assigns a random password (containing eight characters, consisting of a random mix of letters, numbers, and symbols), and then displays that password on the console.
/ADDCreates a new user account.
/DELETEDeletes the specified user account.
optionsThese are optional switches you can append to the command:
/ACTIVE:{YES | NO}Specifies whether the account is active or disabled.
/EXPIRES:{date | NEVER}The date (expressed in the system's Short Date format) on which the account expires. This parameter cannot be set nor viewed by other Windows XP tools.
/HOMEDIR:pathThe home folder for the user (make sure the folder exists).
/PASSWORDCHG:{YES | NO}Specifies whether the user is allowed to change his or her password.
/PASSWORDREQ:{YES | NO}Specifies whether the user is required to have a password. This parameter cannot be set nor viewed by other Windows XP tools.
/PROFILEPATH:pathThe folder that contains the user's profile.
/SCRIPTPATH:pathThe folder that contains the user's logon script.
/TIMES:{times | ALL}Specifies the times that the user is allowed to log on to the system. Use single days or day ranges (for example, Sa or M-F). For times, use 12-hour notation with am or pm, or 24-hour notation. Separate the day and time with a comma; separate day/time combinations with semicolons. Here are some examples:
M-F,9am-5pm
M,W,F,08:00-13:00
Sa,12pm-6pm;Su,1pm-5pm
Note that the abbreviated form of Thursday, Saturday, or Sunday requires the use of the first two characters of the day's name. This parameter cannot be set or viewed by other Windows XP tools.

Media Lab Overview
LIACS Homepage
MM Conf
ACM Multimedia
ACM ICMR
IAPR ICPR
Science Direct
IEEE Library
LIACS Publications
ACM Digital Library