You are here: Core Reference > Coding > Scripting > App.LogOnUser and App.LogOffUser

App.LogOnUser and App.LogOffUser

The LogOnUser and LogOff functions are application functions and are used to log on/log off a specified system using a specified user name and password.

Syntax

App.LogOnUser (System, User, Password)

App.LogOffUser (System)

Description

The LogOnUser application function logs on to a specified system using a specified username and password. Unlike the LogOn application function, it does not display the Log On Window or prompt the user to enter log on details.

The LogOffUser application function logs off the specified system.

Arguments

System {String}

The name of the system to which the specified user is going to be logged on/off.

 

User {String}

The user name that is used to log on to the specified system.

 

Password {String}

The password for the user name that is used to log on to the specified system.

Returns

None.

Example:

App.LogOnUser ("SP1-SYS", "AYOUNG", "AY07AV")

This would log on to the SP1-SYS system via the AYOUNG user account using the password AY07AV.


ClearSCADA 2015 R2