Remote Desktop disconnecting after 30 minutes

Posted on 2008-10-23
Medium Priority
Last Modified: 2013-11-21
I'm having problems with my Remote Desktop - it is disconnecting users after 30 minutes or so.  I don't have the exact message, but it was not specific.

Our primary server hosts the Remote Web Workplace under Windows Small Business Server 2003.  User can log in there and connect to the company's application server.  

The application server is running Windows Terminal Services (Windows Server 2003) and hosts several applications.

This has worked well in the past, but recently my remote users have been complaining that they are getting disconnect.  This seems to happen after about 30 minutes of use.

I've checked the setting on the Terminal Services Configuration and it is not set to automatically disconnect users (set to "Never").

Any ideas on the solution or at least how to troubleshoot?
Question by:ReeseWatt

Expert Comment

ID: 22787237
Go into the GPO editor (gpedit.msc) and goto Computer Config, Admin Templates, Windows Components, Term Services, and check settings for Keep-Alive Connections, Auto reconnection and the settings in the Sessions folder.
LVL 18

Expert Comment

ID: 22787248
1.On the server
Go to Start
Administrative tools
Terminal Services Configuration
In the RH pane select connections
Right click on the defult RDP, properties
Select the session tab
Set the idle session limit to what you require.
The server will leave the session open up to this set limit

2.Do you have GPO for this ?
LVL 78

Expert Comment

by:Rob Williams
ID: 22787559
The remote desktop session is controlled by numerous session limits, such as time limits for disconnected sessions, active sessions, idle sessions, and action upon reaching the time limit. All of these can be set in 6 locations. You should likely check all to see if one or more is affecting the host/domain PC's. Numbers 1 and 5 are the most likely location for any set limits.
1)      Domain group policy Computer configuration | Administrative templates | Windows components | Terminal Services | Sessions |....
2)      Domain group policy User configuration | Administrative templates | Windows components | Terminal Services | Sessions |....
3)      Local computer policy Computer configuration | Administrative templates | Windows components | Terminal Services | Sessions |....
4)      Local computer policy User configuration | Administrative templates | Windows components | Terminal Services | Sessions |....
5)      Users profile in Active Directory. See: Active Directory Users and Computers | User profile | Sessions
6)      If a terminal server, see also: on the terminal server, Terminal Services Configuration console | Connections | right click on RDP-Tcp in the right hand window and choose properties | Sessions |&.
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.


Author Comment

ID: 22787620
None of the GPO's were configured for Terminal Services.

Terminal Services configuration is okay - the sessions are not automatcially disconnected.

Couple additional bits of info:
It was working well (with a few glitches) for a year or so.  Also, after the users are disconnected, they often have trouble re-connecting again.

Author Comment

ID: 22787783
All of GPO objects are set to "not configured".  Also, the Terminal Services Configuration is set to override the user settings and is set to "Never" disconnect.

I doubt it's disconnecting at exactly 30 minutes.  For the most part, users just say, "Hey, I got disconnected."  Just one user said it had been about 30 minutes.

But the other problem is that they can't reconnect right away.  They wait awhile and then are able to connect.

I'm having that problem right now.  When I remote to a PC in another town, and then use IE to connect back to our web, this is what happens:
1) I can log in and connect to Remote Web Workplace
2) I get the menu and choose "Connect to your Company's Application Sharing Server"
3) Nothing happens, until I get this message:
VBScript: Remote Desktop Disconnected
"The client could not connect to the remote computer.  Remote connections might not be enabled or the remote computer might be too busy to accept new connections..."

There are no connections currently enabled, so it's not too busy.  

In summary, it seems to be connection problem between our primary server, which hosts the Remote Web Workplace, and the Application Server, which is hosting Terminal Services.

LVL 78

Expert Comment

by:Rob Williams
ID: 22787831
Can you connect successfully using RWW to the SBS or another PC?
If so verify in DNS that the Host record is correct and not duplicated for the terminal server.
Also make sure in the TS network adapter configuration it points only to the SBS for DNS, and the ISP's DNS is not present even as an alternative.

What do you have for an Internet connection? Might it be PPPoE?

Author Comment

ID: 22788253
No, I can't connect to other PC's using RWW.

So, that makes me think I've been focusing on the wrong server.  Maybe the problem is with the server that is hosting the RWW and not with the server hosting the TS.

Our internet connection is a T1 line via Nuvox.

Author Comment

ID: 22788687
More info on this problem.  This works:

1) I sit down at the primary server (running SBS)
2) Open Internet Explorer
3) Goto the Remote Web Workplace website using the internal address
4) Connect to other PC's and the application server.

But when I try to do the same thing from an external website, I can't complete step 4

Accepted Solution

ReeseWatt earned 0 total points
ID: 22790107
Well, it's working now.  I think the problem was with my firewall. Essentially, I just rebooted it and the remote desktop started working again.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
There are literally thousands of Exchange recovery applications out there. So how do you end up picking one that’s ideal for your business & purpose? By carefully scouting the product’s features, the benefits it offers you, & reading ample reviews f…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Watch the video to know the simple way to remove or recover or reset lost or forgotten passwords of Outlook PST file. With Kernel Outlook Password Recovery tool such operation is very easy to perform. It is a freeware with limitation to use with 500…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question