Email alerts to users with disconnected sessions after 8 hours

KC86_ME 21 Reputation points

Hi all

We have a couple of servers which allow users to RDP to. We are finding that users are RDP'ing to these servers and then disconnecting, but not logging off; this is leading to performance problems on the servers.

We would like to set up an email alert to users who have disconnected sessions on the servers, telling them that their session will be logged off in 1 hour (e.g. disconnected for 9 hours in total).

Can anyone advise the best way to go about this, or perhaps suggest an alternative?

We would prefer not to do this with third party software.



Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,574 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous

    Sounds good, there's nothing native, you may need to hire someone to write out this custom process.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous

    May be easier to just configure session timeouts.

    --please don't forget to upvote and Accept as answer if the reply is helpful--

  2. KC86_ME 21 Reputation points

    Hi @Anonymous , thanks for your reply. We are considering timed sessions, however some users have processes/scripts running in their sessions, so if we time their session and they get logged out/scripts get interrupted, this could have further implications to our production systems. Hence why we were looking at an email alert after 8 hours, giving them notice of a logoff in 1 hour, so they can do what they need to on their session to stop scripts/services etc.