Send a Notification Before the Session Time Limit

I don't know if this is possible, but when I was recently sitting in a Nerdio BootCamp, the use case came up where someone has something important on their AVD, but didn't save it before they went to and extended lunch and the session time limit is going to log-off their session before they get back from lunch.

My idea is that XX minutes before a session time limit is reached, we send a notification (Teams Message, Text Message, Email, Carrier Pigeon, etc) to the end-user to let them know their session is going to be logged-out unless they log-in to their session again.

Since this is something we'd not want for everyone, it'd be nice to use an AzureAD group to have receive the notification (for just their user session) if they're a member of the group.

4

Comments (1 comment)

1
Avatar
Justin Trantham

This is a great idea actually even using the built in scripting method Nerdio already has to send something like

msg %sessionnumber% you will be disconnected in x minutes. 

We use a similar powershell one liner when kicking users for maintenance "you will be disconnected in x minutes please re-connect to continue work". I think the added benefit you are getting from your suggestion using some other method like a webhook would be you could implement it to any other tool to notify that user(like teams which is a great idea). Cutting down on angry calls when the CEO loses an excel document he didnt save. 

Please sign in to leave a comment.