Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Trouble staying connected with terminal services via RWW

Posted on 2013-01-30
14
Medium Priority
?
1,127 Views
Last Modified: 2013-11-21
We have a SBS 2008 service in the office. I work from home and connect to the domain workstations via Remote Web Workplace. I'm having several problems, but I'll see if I can deal with these one-by-one. First, my sessions time out all the time if I am not actually typing on the remote session. The timeout duration seems to vary, sometimes it seems like a minute or so, sometimes it seems to go 20 minutes or more. It does seem to time out quicker if the remote session screen is occluded by a local window.

How can I fix this to NEVER timeout?

I came across advice in this blog http://terminal.servebeer.com/php/flaky_connections.php to create a registry DWORD KeepAliveEnable in HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server, and set it to 1. This blog was not dated and did not specify to which OS versions the advice applied. Digging deeper in the blog and links seemed to discuss WIN2000 and WINNT, old stuff. Nevertheless I tried this, but it didn't do anything. So, I removed the DWORD just in case it would end up doing bad things.

Please help solve. This is driving me crazy!
0
Comment
Question by:jmarkfoley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 2
14 Comments
 
LVL 83

Expert Comment

by:David Johnson, CD, MVP
ID: 38838613
Remote Desktop settings set on the server has the option of disconnecting idle sessions after a set period and closing sessions if they have been disconnected for a set period.. check with your administrator.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38840599
I am the administrator. Are you sure this is part of Remote Desktop settings? I thought this had to do with Terminal Services. I'll check the remote desktop settings and see if that helps.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38841729
Interestingly, On Server 2008, the 'Remote Settings' >Remote tab has the "Allow Remote Assistance connections to this computer' greyed out, but I can still use RWW to access this computer. On WIN7 workstations, the 'Allow remote assistance ...' is checked, and under 'Advanced', the 'Invitations' timeout is set to 6 hours. So, I don't think this is a Remote access issue per se.


The message I get at the client (remote) end is: "VBScript Remote Desktop Disconnected. / An internal error has occured (error 50331657). For more information, please contact your network administrator or Microft Product Support."

I have not found much helpful on the web about this error.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 83

Expert Comment

by:David Johnson, CD, MVP
ID: 38842739
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38847611
ve3ofa: Thanks for the feedback. I saw that link in my searches, but I didn't see anything related  to my problem. Issue #2 is for VBScript Error: 50331676 which has to do with not being able to connect at all, which is not my case. My error is 50331657. Am I missing something? Which error did you have in mind for my issue?
0
 
LVL 14

Expert Comment

by:BlueCompute
ID: 38868142
Are you ever seeing this notification?
http://blogs.technet.com/b/sbs/archive/2006/07/25/443383.aspx#_Toc41042000

The "remote assistance" settings are completely irrelevant. They relate to a different technology entirely. The "terminal services" registry settings on the server are also not relevant here, unless it's the actual server you're loading the desktop of - if it's the client desktops then it's the TS Proxy and RWW settings that are relevant - have a look here:

http://blogs.technet.com/b/sbs/archive/2009/06/15/how-to-configure-the-rww-timeout.aspx

The default should never be anything like as low as 1 minute though, and you should be warned. If you forward the Remote Desktop port to one of the client computers, and connect without going through the remote web workplace, does the connection still behave in the same way?
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38887802
> Are you ever seeing this notification?

Wow, there are lots of screens on that link that I've never seen. When I connect to RWW I first get this login page:

RWW Login
After logging in, I get this page:

RWW screen.
From the 'Connect to Computer' block (middle, blue) I can expand a list of possible workstations by clicking on "Show List". When I select a computer I then get a login form for that computer:

RWW connect to workstation
None of these screens seems to show options regarding connection speed. I never get that nice timeout warning shown in your link.

I will try using the "How to Configure the RWW Timeout" instructions specified in your 2nd link and get back to you on the results. However, this will have to be tomorrow as it is 1:00 AM here and I don't intend to stay up for the several hours I plan on setting the timeout to.

Thanks for your response.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38894671
OK, I've run some tests. I configured the domain server to specify a 2 hour timeout according to this instructions in your 2nd link. My results:

Connecting to a server 2008 computer configured to have a 1 hour "screen saver", the remote session reverted to the login screen after 1 hour. It's kind of noteworthy that it doesn't actually go to the screen saver image, but goes to the (local to that host) login screen. After another 7 minutes I got the timeout message. So, this system stayed connected for 1 hour and 7 minutes.

Connecting to a XP workstation with a screen saver set to 20 minutes - after 20 minutes I got the login screen, as above. After another 31 minutes I got the timeout. Connection time 51 minutes.

Connecting to a WIN7 workstation with a screen saver set to 20 minutes - after 20 minutes I got the login screen, as above. After another 37 minutes I got the timeout. Connection time 54 minutes.

None of these connections stayed up for the 2 hours I specified in the IIS manager. Should I have rebooted the domain server? Restarted the IIS service? I didn't do that.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38894698
Your 1st link: http://blogs.technet.com/b/sbs/archive/2009/06/15/how-to-configure-the-rww-timeout.aspx, method I, "To change the client time-out setting for Remote Web Workplace"  has the instruction to option the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SmallBusinessServer\RemoteUserPortal. It also says that if RemoteUserPortal doesn't exist to create it. Well, that key does not exist on my computer, but neither does SmallBusinessServer. Do you suppose it would be OK to go ahead and create SmallBusinessServer?
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 38895032
OK, I went ahead and made the client time-out change by adding the SmallBuinessServer\RemoteUserPortal key to my workstation registry. I opened a new browser window and connected to RWW.

On the remote XP system I connected to, I got the screen saver (not the login screen) in 20 minutes. 41 minutes after connecting I got the disconnect message.

So, none of these suggested settings are doing anything to fix the problem. I still disconnect between 41 and 54 minutes. Here is the exact message I get on my remote WIN7 client:

Remote Desktop Disconnect
0
 
LVL 1

Accepted Solution

by:
jmarkfoley earned 0 total points
ID: 39301393
This question is a bit old. Ttime to close it. I think I've figured out the main problem. It was my D-Link router. For a completely unrelated reason and for my own amusement, I decided to make a Linux based wireless router. (if anybody is interested in the howto on that: http://www.experts-exchange.com/Networking/Linux_Networking/Q_28162388.html). After replacing the D-link, all the problems discussed in this issue went away. Additional problems I didn't post: WINscp would lose connection on almost every file I tried to transfer and I would have to re-login. Sometimes, I'd have to do that more than once per transfer. Mapping remote folders using Windows was next to useless. I could open/read the files, but never save them. These features worked fine with my XP computer and I upgraded to WIN7 at about the same time I got the new D-link, so I wasn't sure whether it was a WIN7 issue or a router issues. With new new linux router, all these additional problems (WINscp, mapping ...) have disappeared.  So, apparently it was the router all along!
0
 
LVL 1

Author Closing Comment

by:jmarkfoley
ID: 39309812
I figured out the problem.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I work for a company that primarily works with small businesses as their outsourced IT vendor. As such the majority of these customers utilize some version of Small Business Server. Due to the economics of running a small business, many of these cus…
Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

688 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