Adding Users (adduser.exe)

"Adduser.exe" is a utility for adding, modifying, or deleting users, but can only be used if the domain is based on either an IMail database or on an external database. (Adduser.exe cannot be used to add users to domains which use the Windows NT database.)

You can use "adduser.exe" to add users whose user IDs and passwords are stored in a text file. Passwords must be between 4 and 15 characters.

If you invoke adduser with no command line options (by typing only adduser at th e MS-DOS prompt), you can then manually input command lines, pressing Enter after each line. If you do this, press CTRL-Z to exit the utility when you are done.

Note: Using the adduser.exe utility to create users does not apply the default user settings as defined in IMail Administrator.

Basic Command Syntax

Adduser.exe [-h hostname] [-k userid] [-m userid] [-u userid]

[-p password] [-n name] [-f filename] [±chgpass] [±web]

[±active] [±info]

Return codes

Adduser.exe returns 1 if it performed at least one of the requested operations; adduser returns 0 if it failed.

Disabling Web Options

New users have all Web options enabled unless you disable one of the Web options (-/+chgpass, -/+web, -/+active, - /+info) in the command line. Modifying a user does not change the user's Web options unless you include at least one of the Web arguments in the command line: if you include any web argument, then all Web options are enabled except those you specifically disable.

Examples:

Adding a user ID of test01.

Adduser -h myhost.com -u test01 -n "ms test" -p yourpass

Adduser -u test01 -n "mr test" -p nopass

Adduser -u test01

Adduser test 01

Deleting a user ID.

Adduser -k -u test01

Adduser -h another.net -k test01

Related Topics

Using a Text File

Command Options