We have a Windows Server 2012 R2 server. We have an application (First Class Web Services) on this server that requires a batch file to run a command with multiple switches, this batch files opens a command window and stays open, if you close this command window the application stops.
Unfortunately this needs to be launched in a session, so we log into this server via RDP (mstsc /admin) and run the batch file and then disconnect (not log off). A little while later the application stops working, and when we log back in to the rdp session (again with mstsc /admin) the command window is gone (as is any other windows that may have been left open).
We believe the session is getting logged off automatically. (EDIT: I've check any policies, local and group policies, and there are no settings applied to limit a session and auto logoff). How can we stop this from happening?