Gwmi does not return any instance for Win32_TerminalService on WinXP/W2K3

rated by 0 users
This post has 1 Reply | 1 Follower

Not Ranked
Posts 1
Leo Fang Posted: 11-03-2011 2:51 AM

Hi,

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.

 

Regards,

Leo

Top 75 Contributor
Posts 37

Hi,

can you use this " Win32_PerfFormattedData_TermService_TerminalServices"

class, it has "active Session," inactive session" , "total sessions"  values

 

thanks

aman

Page 1 of 1 (2 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.