This script is useful for RDS virtual desktops or application hosting or even normal RDP session tracking with an alert on when a system is access.
I needed a way to collect and present the number of employees using a Remote Desktop Service resource over time.
This template is simple but effective. It uses query users (quser) to collect the number of sessions.
The sessions are filtered to collect on "Active" sessions. The count of this is output to SolarWinds.
There are built in thresholds for Yellow at 40 users and Red at 50 users. You can update this in the threshold section.