A Pre-login script is a script that is run before a user is logged on to a desktop. This is typically used to dismiss a splash screen or enter secondary credentials. The script executes a series of keystrokes after the remote desktop connection is established.
Recording a Pre-login Script
Scripts can also be created externally and imported in to the application. To import the script, copy the script to the directory: C:\Program Files (x86)\Cyara\Cyara.Agent.DesktopManager\Scripts. For information about available script commands, see Keyboard Commands.
Assigning a Pre-login Script
- Agent Desktop Server
- Environment Server
- Environment
To assign the Pre-Login Script create a key PreLoginScript under Agent Server
Attributes and define a prelogin script name as below:
<add key="AgentExecutionSettings.UsesDesktopManager" value="true" />
When a Virtual Agent Campaign is run, the pre-login script is run before logging into the RDP session. The Desktop Manager applies the pre-login script that is assigned to Agent Desktop Server. If the agent is not assigned a pre-login script, the script applied at the Environment Server level or the Environment level, in that order.
Examples
Example 1: Enter Credentials
SK_DELAY 500
Wait> 1
SendText>{username}
Press Tab
Wait> 0.5
SendText>{password}
Press Enter
Wait> 1.5
Press Enter
Example 2: Close a Splash Screen
The following example shows a sample script to dismiss a splash screen that is displayed before logging into a remote desktop.
Wait> 2
Press Enter
Wait> 2
Comments
0 comments
Please sign in to leave a comment.