How to generate a report of remote sessions duration on windows server 2008 r2?
I have about 10 users (local users, not domain) that are loging in remotely (using RDS) to Microsoft Server 2008 R2 to use accounting and scheduling software. I would like to generate a report for past time to see how many hours each one of them had been logged in. Ideally I want to see all of last year (2011). Is there a way to do that? Thank you in advance! Stan
February 4th, 2012 11:59am

take a look at the events 21 and 24 in Microsoft-Windows-TerminalServices-LocalSessionManager/Operational and for example generate per powershell daily csv's which you in turn could generate a report from. a straight forward way I don't know about Get-WinEvent -logname "Microsoft-Windows-TerminalServices-LocalSessionManager/Operational" | where {($_.Id -eq "21" -OR $_.Id -eq "24")} | Export-Csv c:\temp\$(get-date (get-date).AddDays(-1) -uformat %Y%m%d).csv
Free Windows Admin Tool Kit Click here and download it now
February 4th, 2012 12:36pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics