Controlling Remote Desktop Connection

Posted on 2007-11-14
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.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Accepted Solution

MorDrakka earned 500 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
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…

717 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