Email alerts to users with disconnected sessions after 8 hours

KC86_ME 21 Reputation points
2022-11-27T13:05:04.57+00:00

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.

Thanks,

Kay

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

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2022-11-29T14:10:44.87+00:00

    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. Dave Patrick 426.1K Reputation points MVP
    2022-11-27T15:59:53.823+00:00

    May be easier to just configure session timeouts.
    http://woshub.com/remote-desktop-session-time-limit/

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


  2. KC86_ME 21 Reputation points
    2022-11-29T08:56:35.203+00:00

    Hi @Dave Patrick , 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.