My question is the same as this post: http://social.technet.microsoft.com/Forums/en-US/winserverTS/thread/8655f0e8-66b4-49f1-b60a-6042e3524afb/ but I would like a solution in PowerShell.
Gwmi does not work as no instance is returned for Win32_TerminalService on WinXP/W2K3.
I tested with the VBScript on WinXP and it does work which means the DisconnectedSessions property just "resides" somewhere. In other words, how can I rewrite this VBScript to PowerShell?
Please help. Thanks.
can you use this " Win32_PerfFormattedData_TermService_TerminalServices"
class, it has "active Session," inactive session" , "total sessions" values