Generate Password Action

Generates a random string using any possible printable character between the specified minimum and maximum sizes and stores it as an AWE variable. This string conforms to the standard for strong passwords. Used to build a strong password.

Declaration

<AMGENERATEPASSWORD MINLENGTH="number" MAXLENGTH="number" RESULTVARIABLE="text [variable name]" />

Example

<AMGENERATEPASSWORD MINLENGTH="7" MAXLENGTH="11" RESULTVARIABLE="VariableName" />

See Also: Authenticate

To set properties of the Generate Password action:

  1. In the Available Actions pane, expand the Security folder and double-click the Create Password action or drag the action into the Steps pane.

  2. In the General tab properties of this action, enter the minimum length of characters that the generated password should contain under the Min length parameter.

  3. Enter the maximum length of characters that the generated password should contain under the Max length parameter.

  4. Under the parameter labeled Populate variable with password, select a pre-existing variable that you want to save the password information to.

  5. To set the Description tab properties, refer to Description Tab Options.

  6. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  7. When finished, click OK to save settings and close the properties dialog box.

General Tab

Property

Type

Required

Default

Markup

Description

Min Length

Number

Required

 

MINLENGTH="7"

Specifies the minimum length of characters that will be used to generate the password.

Max Length

Number

Required

 

MAXLENGTH="11"

Specifies the maximum length of characters that will be used to generate the password.

Populate variable with password

Text

Required

 

RESULTVARIABLE="varname"

Specifies an existing variable to populate with the newly generated password.

Standard Error Handling Options

This action also includes the standard "Error Causes" and "On Error" failure handling options/tabs

More on Error Handling Options

Variables and Expressions

All text fields allow the use of expressions by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, a popup expression builder is available in all these fields by pressing F2.

More on variables

More on expressions

More on the expression builder

See Also

About Actions

Adding Task Steps