Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Controlling Remote Desktop Connection

Posted on 2007-11-14
Medium Priority
Last Modified: 2010-04-23
I want to be able to stop a user of rdp/teminal service connection from closing the connection without logging off. If this can be done via code then this is better - if it can be done by other means (that do not involve third party) then please can you help.
Question by:pxj05
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
  • 2
  • 2
  • 2
LVL 12

Expert Comment

ID: 20280913
You can set a local policy to remove the disconnect option from the start menu:



Expert Comment

ID: 20280940

A user can still ALT F4 or X the RDP window. I would suggest you edith your terminal server settings so that when users disconnect their sessions, those sessions get logged off immediatly.

This is a option within terminal server.

Hope this helps.

Author Comment

ID: 20281048
MorDrakka: In your comment you say

I would suggest you edith your terminal server settings so that when users disconnect their sessions, those sessions get logged off immediatly

How do you do this - this seems to be the answer.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Accepted Solution

MorDrakka earned 2000 total points
ID: 20287268

I will tell you how you do that:

Log in op de terminal server
start 'Terminal Services Configuration'
Right click RDP-TCp, click 'Properties'
Go to tabblad Sessions.

There you are, select 'Override user settings', Then select a time @ End a disconnected Session.

Hope this helps!

Author Closing Comment

ID: 31409183
Thanks to both of you for answering so quickly.

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

636 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