create_aduser

Use the create_aduser command to create a new Active Directory user account with a specified distinguished name (DN), user principal name (UPN), sAMAccountName, and password.

Syntax

create_aduser dn upn sam pw ?dname? ?gname? ?spn? ?gecos?

Options

This command takes no options.

Arguments

This command takes the following arguments:

Argument Type Description

dn

string

Required. Specifies the distinguished name of the new user.

upn

string

Required. Specifies the user principal name of the new user.

sam

string

Required. Specifies the sAMAccountName of the new user.

pw

string

Required. Specifies the password for the new user.

dname

string

Optional. Specifies the displayName for the new user.

gname

string

Optional. Specifies the givenName for the new user.

spn

string

Optional. Specifies the servicePrincipalName for the new user.

gecos

string

Optional. Specifies the gecos for the new user.

Return value

This command returns nothing if it runs successfully.

Examples

create_aduser {CN=ulysses urkham,CN=Users,DC=acme,DC=com} ulysses.urkham@acme.com ulysses.urkham {5$6fEr2B}

This example creates a new Active Directory user account ulysses.urkham@acme.com.

Related Tcl library commands

  • create_adgroup creates a new Active Directory group account and specifies its scope.
  • create_user creates a new zone user based on an existing Active Directory user, assigns field values to the new user, and saves the new user to Active Directory.
  • create_group creates a new zone group based on an existing Active Directory group, assigns it a UNIX name and group ID, and saves the new group to Active Directory.
  • add_user_to_group adds an Active Directory user to an Active Directory group.
  • remove_user_from_group removes an Active Directory user from an Active Directory group.