Solved

RDP Disconnects and Loss of Work

Posted on 2011-09-26
12
393 Views
Last Modified: 2012-05-12
When connecting to our server (2008 Datacenter SP2) via RDP we are getting random session disconnects. This wouldn't normally be an issue, but when the client disconnects and we reconnect, a new session is being created and all the work that was being done is now lost. Why is this new session being created? How do I get the old session back after being disconnected so that the users can save/finish their work? Thanks -Chad-
0
Comment
Question by:PMICORP
  • 5
  • 5
12 Comments
 
LVL 7

Expert Comment

by:OctInv
Comment Utility
Use Terminal server manager under administrative tools to see the previous sessions that are still logged in and connect to them.
Occasionally, it will create another session rather than contiue the previous, depending on where you are connecting from for the next session.
0
 

Author Comment

by:PMICORP
Comment Utility
If a standard user is having this issue how would they ensure they are going to get back to the session that they were doing work on?  
0
 
LVL 7

Expert Comment

by:OctInv
Comment Utility
I'm not sure what you mean by standard user, as the user that uses remote desktop to log on to a server needs to either be an administrator or part of the remote desktop users group as far as I'm aware.

In order to take back the session from the server, after logging on:

Start > All Programs > Administrative tools > Terminal Services > 'Terminal Services Manager'.
Click on the root of folders on the left, then in the main body of the window, select the 'users' tab.  From there right click the session that you want to connect to and click 'Connect'.

You could use the TSCON command to connect directly to the session, but you would need to know the session ID or the session name before hand, and that means finding it out before you get disconnected.  In my opinion, it's easier just to do the above.

Hope this helps you.
0
 

Author Comment

by:PMICORP
Comment Utility
By standard user I mean someone that does not have elevated access such as an Administrator, it is not possible for users to access terminal services manager only Administrators so this will not work. I need a solution to prevent this from happening in the first place. We are loosing hours of work when getting kicked off that has not been saved. Thanks
0
 
LVL 3

Expert Comment

by:H-Singh
Comment Utility
when you logs in second time do you do with same username  e.g. administrator that was disconnected last time.

also while logged in after disconnection if you open "task manager" and tab "users"
can you see last session listed there if yes you can right click and connect to that session.
but am not sure if this only works for server 2003 and server 2008 does't support this
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 7

Expert Comment

by:OctInv
Comment Utility
Pmicorp,

It seems that either I am not making myself clear, or you are misunderstanding me.  Hopefully I can clear a few things up which will go towards answering your question.

Firstly, standard users are not able to log on to servers by default unless they are an administrator or part of the Remote Desktop Users group for that server.
If you say that a user is logging in to that server then they are NOT just a standard user.  This is unless you (or anyone else) have explicitly allowed standard users to log in (which I would never recommend if this is a server).

Secondly, if they are logging in to the server via terminal services, then regardless of the privileges they have after logging in, terminal services manager is available to be opened (as far as my testing has proved).  If this is not the case - let me know what error message the user gets when following the instructions I gave above on opening Terminal services manager.

Thirdly, you are not losing hours of work when a session gets disconnected.  That session is still open and the hours of work is still available to connect to again if you follow the instructions I gave above on how to connect to the session that the user was disconnected from.

As for a solution...
Disconnections happen all the time if the network connectivity between the terminal services client and the terminal services server is cut (i.e. the user’s computer and the server).  For example, I suspect that the user might either be connecting over wireless, or over a VPN connection via the internet - both of which can be quite unstable.  The solution there to prevent being disconnected is to improve the stability of the network between the client and the server.
If you want to connect to the same session again, then the user needs to use the 'Query session' command from the command line before the session disconnects and record the session ID.  If the session disconnects, use the 'Tscon' command from the command line listing the recorded session ID.  Details on how to use that command is here:
http://technet.microsoft.com/en-us/library/cc770988(WS.10).aspx

I believe I have answered your questions of ‘Why is this new session being created?’ and ‘How do I get the old session back’ to the best of my (or possibly anyone else’s) ability with the information that I understand given by you above.

If I have misunderstood anything or you think additional information may help you find an answer to a different question you have, please let me know.

Hope all this is helpful to you.
0
 

Accepted Solution

by:
PMICORP earned 0 total points
Comment Utility
Actually the answer was simpler than I thought. It turns out that I had set "Delete Temporary Folder on Exit" to yes and the server was deleting the setting each time a user was disconnected. Setting this to no fixed the issue of a new session being created.
0
 

Author Comment

by:PMICORP
Comment Utility
I've requested that this question be closed as follows:

Accepted answer: 0 points for PMICORP's comment http:/Q_27328065.html#36710310

for the following reason:

After reading a number of articles I was directed to the solution stated in the post.
0
 
LVL 7

Expert Comment

by:OctInv
Comment Utility
Chad,

Your answer you gave above is not relevant to your problem and does not answer the question.

That setting is set to 'Yes' by default and affects users that 'log off' from a terminal services session and not when they become 'disconnected'.  Besides which, new sessions will continue to be created regardless of this setting being set to 'Yes' or 'No', and you will still need to reconnect to an original session in order to continue working on it once disconnected.
0
 
LVL 7

Expert Comment

by:OctInv
Comment Utility
I believe I took the time out to answer this query fully, giving a correct and informative answer.

The author has since not commented on my answer as being right or wrong and come up with an answer that is in no way relevant to the original question.

My objection is based on the assumption that points should be awarded for correctly answering a question and contend the author’s decision not to assign points.
0
 

Author Comment

by:PMICORP
Comment Utility
I don't see how you can say that my answer isn't relevant to my question.  Before, when a session was disconnected, the server deleted the current state of the RDP connection. Now it doesn't.  My users have no need to use tscon to get the desired results. That means your answer is not a solution to the stated issue.
0

Featured Post

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

Recently, I was asked to look into SCCM 2007 by my employer, having a degree of experience of earlier versions of SMS and some previous SCCM knowledge I didn't expect the procedure to involve to much time. I read a number of guides concerning it…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now