TS WMI provider is for Windows 2003 server only, so if all of your servers
are 2003 server that approach would work.
Alternatively you could use the TS API methods; WTSOpenServer(),
WTSEnumerateSessions(), WTSQuerySessionInformation() etc by using DllImport.
Arild
"Moses M" <Mm*****@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I am new to C#! I need to enumerate TS sessions (including sessions
running in non-application mode) using a C# application. Can this be done using a
"TS-WMI" provider? Any input will be appreciated!
Moses