[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

RDP Disconnects and Loss of Work

Posted on 2011-09-26
12
Medium Priority
?
408 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
[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
  • 5
  • 5
12 Comments
 
LVL 7

Expert Comment

by:OctInv
ID: 36599988
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
ID: 36606522
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
ID: 36708218
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
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 

Author Comment

by:PMICORP
ID: 36709343
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
ID: 36709505
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
 
LVL 7

Expert Comment

by:OctInv
ID: 36709769
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
ID: 36710310
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
ID: 36710716
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
ID: 36710680
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
ID: 36710717
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
ID: 36711403
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
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…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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…

649 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