Running LeanFT Automation scripts using Jenkins in remote machine via RDP

We are having some challenges in scheduling LeanFT Test suite execution using Jenkins  where test automation scripts expects Windows RDP user sessions to Test server(remote machine) to be active to run tests all the time since all these tests are GUI based sessions(Sikuli Objects).

I tried scheduling couple of tests with closed RDP session by storing RDP session ID with some batch script, observation is it runs the job if we schedule it immediately. But for later time if we schedule, RDP session ID stored are getting lost, test execution scripts not able to capture the screen details of remote session.Please let me know is there any method to schedule these kind of tests in remote machine where it expects RDP session to be active while running tests.

UFT Version used : 15.0.2

Tags: