I have a Jenkins pipeline that executes a program in a remote server that uses pywin to manipulate an application for functional tests.
My application works great wh
If I understand your problem, which is mine also, correct answer can be found there:
https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlocked.html
(This link comes from this page: Remote Execution Guide in pywinauto)
And exact process to follow such as described in the page:
To disconnect from Remote Desktop, run the following command on the remote computer (in the Remote Desktop window) as an Administrator:
%windir%\System32\tscon.exe RDP-Tcp#NNN /dest:console
where RDP-Tcp#NNN is the ID of your current Remote Desktop session, for example, RDP-Tcp#0. You can see it in the Windows Task Manager on the Users tab, in the Session column.
You will see the “Your remote desktop session has ended” message, and the Remote Desktop client will close. But all programs and tests on the remote computer will continue running normally.
I am just testing it and works without problem.