How to keep a VPS always logged in 24/7?


Aug 14, 2017
Reaction score
have a VPS running Windows Server 2008 r2, which I use to operate a program called WinAutomation -- this program helps automate certain tasks using mouse clicks and keyboard input.

I need the program to function 24/7, but the problem is that the program cannot perform mouseclicks or key input unless there is a user logged into the GUI.

On my VPS, I can connect via RDP and WinAutomation will run smoothly, but when I disconnect from RDP, the user isn't really logged in anymore -- the user is just in a session.

So, I need to figure out a way where I can keep a user logged in 24/7 so that WinAutomation can run without a problem. I need to be able to log in and out via RDP from my other devices without disturbing the active session.

Currently, my solution is two VPS boxes. I have one that runs WinAutomation 24/7, and the alternate VPS I use to keep a live RDP connection 24/7 to the primary. I log in and out of the secondary via RDP to control the main VPS through this tunnel so to speak, but issues arise when either one of the VPS restarts, or if the connection drops.

I have considered maybe just one VPS and running a virtual machine inside the VPS, but I'm very new to virtualization.

If I setup a VM inside my main VPS, I can run WA in the child VM. As long as there is a window open showing the child VM's GUI, WA will run smoothly. But, lets say the host machine restarts, I need the child VM to automatically open upon reboot.

What are your thoughts? What is the best way to keep a user logged in 24/7, even after a restart?


Registered Member
May 22, 2016
Reaction score
the most simple solution rdp to another account on the same vps. other solutions needs very high admin permissions (dedicated server ) or you talk with your server admin if its available.