This Powershell script will parse the Windows event logs of your Remote Desktop Session host servers and give you a nice report in Excel (xlsx) format.
- Before you run, edit $SessionHosts to include one or several of your own servers.
- ImportExcel module needs to be installed and imported before use.
- Some basic powershell knowledge.
This is a modified copy of the script by Mike Crowley, located at