Generate Password Action

Declaration

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

See Also

 Authenticate

Description

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

Practical Usage

Used to build a strong password.

Parameters

General Tab

Min Length

Number, Required
MARKUP: MINLENGTH="7"

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

Max Length

Number, Required
MARKUP: MAXLENGTH="11"

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

Populate variable with password

Text, Required
MARKUP: RESULTVARIABLE="varname"

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

Notes

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...

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

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