Add User: add-user

Note: Requires administrative permissions.

Syntax

The syntax for this command is:

stcmd{Ex} add-user –s “username:password@host:port” –logonname “logon name” 
–password “password” [-name “user full name” ] [-group “group name”] 
[-phone “phone number”] [-email “email address”] [-address “postal address”] 
[-voicemail “voice mail number”] [-pager “pager number”] [-fax “fax number”][-distinguishedname “distinguished name”] 
[-directoryservicevalidation] [-fixedlicense] [-territory “territory name or territory enum code”]

logonname and password are required. All other parameters are optional.

Parameter

Description

-logon name Name used for logging in to the Server.
-password User's password.
-name The user's full name. If you don't specify -name, then logon name is used as the name
-group Name of the group the user is added to. If you don't specify -group, then the user is added to the All Users group. Otherwise, You must specify a valid group name with -group.
-phone Phone number of the user.
-email User's email.
-address Postal address of user.
-voicemail User's voicemail number.
-pager User's page number.
-fax User's fax number.
‑distinguishedname User's directory service distinguished name
‑directoryservicevalidation If specified, turns on directory service validation.
-fixedlicense If specified, sets the user to inherit a fixed license.
-territory If specified, then a case insensitive territory name or enum code must be specified as the value. Enums may be added to or removed from the User Geographic Territory Enumerated Property type using the add-enum command.