I have implemented an application which is available through RemoteApp over the internet. The application is processing large amount of data which in some cases takes even 4-5 days to complete.

At this point an application user has to keep it open all time the application is running to be able to finish the task.

I was wondering if it's possible to close the connection with the RemoteApp server and still keep the application running. In standard Terminal Service scenario I can just click "the cross" button on the Terminal Server Session bar and disconnect without logging off.

In the RemoteApp scenario there is no TS bar on the top of the screen and by clicking X button within the application the server closes the app.


1 Answer 1


Solution 1

There is a setting in the Group Policies on the server that controls how RemoteApp applications should behave when they are disconnected.
Basically, a log off is performed by default when you close a RemoteApp, but you can change this setting to up to 5 days (might be possible to increase this limit through the registry).

You will find the settings on the server here (for Win2008):

Local group Policies (run gpedit.msc)
  > Computer Configuration
    > Administrative Templates
      > Windows Components
        > Remote Desktop Services
          > Remote Desktop Session Host 
            > Session Time Limits
              > Set time limit for logoff of RemoteApp sessions

Note: make sure you don't override disconnect/log-off settings through the Computer Configuration or User configuration or it won't have any effect as they would have precedence.

Solution 2

Use the tsdiscon tool to disconnect the session instead of closing the application.
In that case, make sure again that your Computer configuration or user Configuration settings do not enforce some time-out that would result in the session being closed when you don't want to.


  • 1
    +1 for tsdiscon and the 3rd link mentioning query session. But is there any way to reconnect without starting another application? Are multiple remote-app sessions to the same server possible so one can only disconnect from a long running program while another application stays open? Commented Dec 9, 2010 at 12:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .