ChangePassword

Item Description

Use with:

Startup scripts, Terminal Launcher, Web, and Windows

SecureLogin version:

All

Type:

Action

Usage:

ChangePassword variable [-random]

Arguments:

variable

[-random]

A normal or runtime variable that the new password is stored in.

Invokes the random password generator.

Description:

Allows a single variable to be changed. Use this command in scenarios where password expiration is an issue. The variable will be set to the new password.

The flag for this command is -random. If -random is set, the new password will be generated automatically in compliance with the variable's password policy.

If -random is not set, a dialog box prompts the user to enter a new password. The new password will be tried against any variable password policies that are in place. See RestrictVariable .

Syntax examples:

ChangePassword ?NewPassword
ChangePassword ?NewPassword "Please enter a new password"
ChangePassword ?NewPassword random

Example:

Dialog  
 Title "Login"
 Ctrl #1
EndDialog
If -Text "Enter your username and password" 
 Type $Username #1 
 Type $Password #2 
 Click #1
EndIf
If -Text "Enter new password" 
 Set $PasswordBackup $Password 
 Type $Password #1 
 ChangePassword $Password random 
 Type $Password #2 
 Type $Password #3 
 Click #1
EndIf