Solved

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

Posted on 2004-04-16
10
364 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
 
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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

[Webinar] Disaster Recovery and Cloud Management

Learn from Unigma and CloudBerry industry veterans which providers are best for certain use cases and how to lower cloud costs, how to grow your Managed Services practice in IaaS clouds, and how to utilize public cloud for Disaster Recovery

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…
There are many Password Managers (PM) out there to choose from. PM's can help with your password habits and routines, but they should not be a crutch you rely on too heavily. I also have an article for company/enterprise PM's.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 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

22 Experts available now in Live!

Get 1:1 Help Now