Solved

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

Posted on 2004-04-16
10
369 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

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.

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 describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 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