Solved

Remote desktop Clients - How do I prevent disconnects and force them to log off?

Posted on 2004-04-16
10
363 Views
Last Modified: 2010-04-13
I have a windows 2000 server running terminal services.   We use the latest desktop client and I am having troubles with users clicking the close button rather than logging off.   I want to force them to log off the system.    Can this be done.   And if so how?

Thanks
0
Comment
Question by:Zoldy2000
  • 5
  • 5
10 Comments
 
LVL 16

Expert Comment

by:JamesDS
Comment Utility
Zoldy2000

It is possible to force disconnected sessions to be logged off with the following machine configuration GPO settings:

Administrative Templates\Windows Components\Terminal Services\Sessions      Set time limit for disconnected sessions
Administrative Templates\Windows Components\Terminal Services\Sessions      Sets a time limit for active Terminal Services sessions
Administrative Templates\Windows Components\Terminal Services\Sessions      Sets a time limit for active but idle Terminal Services sessions
Administrative Templates\Windows Components\Terminal Services\Sessions      Terminate session when time limits are reached

If you prefer to use registry hacks these are as follows:
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services!MaxDisconnectionTime VALUE 0, HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services!MaxDisconnectionTime
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services!MaxConnectionTime
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services!MaxIdleTime
HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services!fResetBroken


Cheers

JamesDS
0
 
LVL 2

Author Comment

by:Zoldy2000
Comment Utility
yes I know but I had to disable that because it was improperly terminating applications if they left them open.    I want to force the users to log off.
0
 
LVL 2

Author Comment

by:Zoldy2000
Comment Utility
If I do allow the system to automatically terminal disconnected session do applications that are open get closed properly.

This is my concern with this.   I don't want database problems if the application is terminated improperly.

thanks
0
 
LVL 16

Expert Comment

by:JamesDS
Comment Utility
Zoldy2000
To my knowledge this is the only solution without going full fledged Citrix
I use the same configuration here with legacy and database applications and I have had no issues to date (1 year live 1500 users)

Cheers

JamesDS
0
 
LVL 2

Author Comment

by:Zoldy2000
Comment Utility
what would citrix do for me....   is your 1500 user configuration citrix?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 16

Expert Comment

by:JamesDS
Comment Utility
Zoldy2000
Citrix Metaframe XPe gives you that ability to close the ICA (Terminal Services) session when the application is closed by the user.

You pay considerably extra for the liceses tho, so it really has to be worth it. There is a full Windows2003 versus Metaframe conaprison on the Critrix website.

We use Terminal Services exclusively here.

Ctrix

Cheers

JamesDS
0
 
LVL 2

Author Comment

by:Zoldy2000
Comment Utility
you can do that with terminal server as well.   As long as you only want to run one application...   I see what you mean though .....   in my case I have multiple apps so I would need citrix.

So just to clarify...   in your case (experience) if I close a disconnected session automatically and the user leaves an application running it will close the application?

Is that correct?
0
 
LVL 16

Accepted Solution

by:
JamesDS earned 125 total points
Comment Utility
Zoldy2000
If you force the connection to close, it WILL close the application. A properly written app will not leave handles open on the database and cause you issues.

Cheers

JamesDS
0
 
LVL 2

Author Comment

by:Zoldy2000
Comment Utility
great thanks
0
 
LVL 16

Expert Comment

by:JamesDS
Comment Utility
Welcome

Cheers

JamesDS
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

16 Experts available now in Live!

Get 1:1 Help Now