Restarting Runtime after connecting to a specific network in Windows
In a Workforce Intelligence implementation, if you have users who log in by using a Virtual Private Network (VPN), you can use Microsoft Task Scheduler to define when a successful network connection starts Pega Robot Runtime.
The following steps describe how to use the Microsoft Task Scheduler wizard to automatically start Pega Robot Runtime.
- From the Windows Search. menu, right-click and select
- In the Search field, enter Task Scheduler, and then click the icon.
- Click Task Scheduler Library.
- Right-click Task Scheduler Library, and then click Create Task.
- On the General tab, in the Name field, enter a name for the task, such as Pega Robot Runtime Restart.
- Click the Triggers tab.
- Click .
- In the New Trigger window, complete the following fields:
- In the Begin the task field, select On an event.
- In the Log list, select Microsoft-Windows-NetworkProfile/Operational.
- In the Source list, select NetworkProfile.
- In the Event ID field, enter 10000.
- Select the Enabled checkbox at the bottom of the window, and then click . When the VPN agent establishes a successful connection, the system triggers event 10000.
- In the Create Task window, click the Actions tab.
- Click .
- In the New Action window, complete the following fields:
- In the Action list, select Start a program.
- In the Program/script field, enter taskkill.
- In the Add arguments (optional) field, enter /f /im "OpenSpan.Runtime.exe".
- Click .
- In the Create Task window, on the Actions tab, click .
- In the New Action window, from the Action list, select Start a program.
- In the Program/Script field, enter the path to the OpenSpan.Runtime.exe file, depending on your Robot Runtime version.
- Robot Runtime 19.1
- For a 64-bit environment, the default location is:
"C:\Program Files (x86)\Pegasystems\Pega Synchronization Engine\Pega.Loader.exe" - For a 32-bit environment, the default location is:
"C:\Program Files\Pegasystems\Pega Synchronization Engine\Pega.Loader.exe"
- For a 64-bit environment, the default location is:
- Robot Runtime 8.0 SP1
- For a 64-bit environment, the default location is:
C:\Program Files (x86)\OpenSpan\OpenSpan Runtime Enterprise\OpenSpan.Runtime.exe - For a 32-bit environment, the default location is:
C:\Program Files\OpenSpan\OpenSpan Runtime Enterprise\OpenSpan.Runtime.exe
- For a 64-bit environment, the default location is:
- Robot Runtime 19.1
- For Robot Runtime 19.1 only, in the Add Arguments field, enter the following argument:
-p Runtime -e OpenSpan.Runtime.exe --noSplash - Click .
- Verify that the information is correct, and then click OK.
- In the Create Task window, click the Conditions tab.
- Clear the Start the task only if the computer is on AC power checkbox.
- Select the Start only if the following network connection is available checkbox.
- In the list, select the network or SSID so that the scheduled task triggers when the user connects to the specific network.
- Click .
The created task restarts Pega Robot Runtime after successful connection to the Windows network that you select.
Previous topic Starting Runtime with a secure connection Next topic Starting Runtime on a Cisco VPN agent