Solved

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

Posted on 2004-04-16
10
377 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
[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
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
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

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…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

624 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