Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 Serves 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 it the server closes the app.

share|improve this question

migrated from stackoverflow.com Dec 10 '10 at 13:45

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

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.

References

share|improve this answer
    
+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? –  Tobias Kienzler Dec 9 '10 at 12:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.