Hi guys...
I don't know if my question belongs in here but i'll give it a try :).
Yesterday a customer called me because he couldn't enter a server because the terminal server sessions were maxed out.
He told me if i could take a look at that and to tell him who was connected.
I've enter the server remotely using tsadmin.exe and saw to users, user 1 that was logged on since 5 days ago (he left the session open) and user 2 that was disconnected (not logged off).
My question is... Is there a way using WMI to see this information?. Who is looged in, since when and the max sessions that the server can have.
Thanks so much!!!
Regards.
Francisco.
PS: Sorry for my bad english :)
解决方案
I've found this:
you could use a custom WMI sensor using these WQL querys
depending on the OS...
2003
Total Sessions
SELECT TotalSessions FROM Win32_PerfFormattedData_TermService_TerminalServices
Active Sessions
SELECT ActiveSessions FROM Win32_PerfFormattedData_TermService_TerminalServices
2008
Total Sessions
SELECT TotalSessions FROM Win32_TerminalService
Active Sessions
SELECT ActiveSessions FROM Win32_PerfFormattedData_LocalSessionManager_TerminalServices
That will give me half the info needed :) but not who is logged in