Solved

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

Posted on 2004-04-16
10
365 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
ID: 10843750
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
ID: 10843890
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
ID: 10858927
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
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 16

Expert Comment

by:JamesDS
ID: 10858967
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
ID: 10859089
what would citrix do for me....   is your 1500 user configuration citrix?
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10859642
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
ID: 10859685
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
ID: 10859721
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
ID: 10859906
great thanks
0
 
LVL 16

Expert Comment

by:JamesDS
ID: 10860786
Welcome

Cheers

JamesDS
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

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…
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 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