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

rated by 0 users
Not Answered This post has 0 verified answers | 1 Reply | 1 Follower

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


My question is the same as this post: 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.




All Replies

Top 150 Contributor
37 Posts


can you use this " Win32_PerfFormattedData_TermService_TerminalServices"

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




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