UiPath installed locally on Server - Unable to run processes when Remote Desktop Connection is closed

Hi @SimonDalgaard,
have you the CE or enterprise edition? Is important to set up the bot in service mode and not the user mode. if you have the enterprise you can install the service mode via the installer.
Maybe this post can help you:

Unattended bot requires background automation, the error is timeout reached or other type of error?