Powershell command to Send message to user before logging them off?


I have a script that checks for sessions with a duration of greater than an hour, and then logs off those sessions.  However, the global settings to send a message at forced logoff seem to be ignored and the user is logged off immediately.  What I would like to do is send those users a message that, at time X, the sessions will be logged out. I don't see any powercli options to send messages to users in a session, only through the GUI.  Can someone help with this?    

0 Kudos
0 Replies