Server 2012 Remote Desktop PowerShell–GUI interface to send connected users a message and log them off

The introduction of Server 2012 Remote Desktop Services has enabled us to use PowerShell to accomplish certain tasks.

You may want to allow certain users / support staff to log users out of the remote desktop farm or send them a message but don’t want them to have full server manager access. We can achieve these tasks through PowerShell and I’ve created a GUI interface to send connected users a message and then log them off.

Download the code and run it from PowerShell – you will need to have the remote desktop PowerShell module installed.