SetPassword

Action to set password to connect to the Server.

Member of namespace

Maintenance Manager

Syntax

bool SetPassword (string password)

Parameters

String password

Parameters

password: Password. Smart parameters are supported.

Returns

Always True.

Level

Batch level.

Details

Specifies the password for the previously specified user ID. This will be the default value used for the SetupOpenApplication action.

When using LDAP or ADSI authentication, use the SetUser, SetStation, and SetApplication to login.

Example:
SetApplication("APT")
SetServer("Server 1")
SetAdminDB("*/tmadmin:cs")
SetEngineDB("*/tmengine:cs")
SetUser("Admin")
SetPassword("@APPVAR(values/adv/MyNENUPassword)")
SetupOpenApplication("")      

This example uses the Smart Parameter @APPPVAR to obtain the value of the password from the value name MyNENUPassword in the Custom Values tab of the Application Service Manager. The value name is configurable.