Automate export of Session details?

Outek

Bit poster
Hi there
Is it somehow possible to automate the Session details csv? Something like the cmdlet Invoke-RASExportSettings would be nice, but i didn't found anything.
Thanks
 
Hell Outek,
Yes, it's definitely possible, but there is no direct "one-shot" cmdlet like Invoke-RASExportSettings for session details.
We handle it by querying sessions with the RAS PowerShell module (Get-RASRDSession), then exporting or processing the data as needed.
In our case, we don't generate a CSV.
We push the data to an InfluxDB backend to get near real-time visibility on:
total sessions / sessions per pool / usage over time
It's easy to automate with a scheduled task and gives much more flexibility than a static CSV export. Please find a sample script (fake info inside :D).
 

Attachments

Hi,
While Invoke-RASExportSettings is dedicated to backing up the Farm configuration, it doesn't include live operational data like user sessions.
To automate the session details export, you should use the Get-RASRDSession cmdlet. This command returns a full object containing all the details you usually see in the console (IP, Login time, Latency, etc.).
 
Back
Top