PC Review


Reply
Thread Tools Rate Thread

Determine Terminal Server Session ID's from the Client

 
 
amdrit
Guest
Posts: n/a
 
      21st Sep 2009
I am looking for a way to query a client machines session id(s) to a
terminal server. Does the client know the session id it has been assigned?

It seems to me that WTSEnumerateSessions API is only viable when ran against
a server. Is there an API available to ask the client of all its open
sessions? Is there an event sink that I can use to monitor connection open
and connection close?

Thanks in advance.


 
Reply With Quote
 
 
 
 
Nobody
Guest
Posts: n/a
 
      21st Sep 2009
"amdrit" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am looking for a way to query a client machines session id(s) to a
>terminal server. Does the client know the session id it has been assigned?
>
> It seems to me that WTSEnumerateSessions API is only viable when ran
> against a server. Is there an API available to ask the client of all its
> open sessions? Is there an event sink that I can use to monitor
> connection open and connection close?


You posted to the wrong groups. microsoft.public.windows.terminal_services
is for TS usage by end users, not for development. "vb" groups without
"dotnet" or "vsnet" in the group name are for VB Classic(VB6 or lower). You
posted to dotnet.general, but this is generic group. VB.Net and all dotnet
groups have either "dotnet" or "vsnet" in the group name. Please use the
following group instead:

news://msnews.microsoft.com/microsof...t.languages.vb



 
Reply With Quote
 
Alex Clark
Guest
Posts: n/a
 
      22nd Sep 2009
Amdrit,

There might be something in WMI that you could query to get the information.
Other than that I can't think of anything off-hand that would list all open
RDP sessions on a client machine. It's a bit of an odd thing to want to
do - is there any particular reason for it? Maybe there's some other way of
approaching your problem?

HTH,
Alex


"amdrit" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am looking for a way to query a client machines session id(s) to a
>terminal server. Does the client know the session id it has been assigned?
>
> It seems to me that WTSEnumerateSessions API is only viable when ran
> against a server. Is there an API available to ask the client of all its
> open sessions? Is there an event sink that I can use to monitor
> connection open and connection close?
>
> Thanks in advance.
>



 
Reply With Quote
 
Soo Kuan Teo [MSFT]
Guest
Posts: n/a
 
      24th Sep 2009
this session ID information is only available from server.
Thanks
Soo Kuan


--
This posting is provided "AS IS" with no warranties, and confers no rights.

"amdrit" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am looking for a way to query a client machines session id(s) to a
>terminal server. Does the client know the session id it has been assigned?
>
> It seems to me that WTSEnumerateSessions API is only viable when ran
> against a server. Is there an API available to ask the client of all its
> open sessions? Is there an event sink that I can use to monitor
> connection open and connection close?
>
> Thanks in advance.
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[.Net 2008] Client Host Name on Terminal Server Session Doken13 Microsoft Dot NET Framework Forms 0 9th May 2008 05:51 PM
Excel hanged in a client terminal server session =?Utf-8?B?QnJpY2U=?= Microsoft Excel Crashes 0 20th Mar 2006 02:51 PM
Terminal Server session hang when client disconnects Cesar Microsoft Windows 2000 Terminal Server Clients 4 1st Jul 2005 10:56 PM
Writing Session Specific Code For Windows 2003 Terminal Server Session OHM Microsoft VB .NET 8 27th May 2004 10:38 AM
Limit terminal server client to one remote session in Windows 2000 Liz Microsoft Windows 2000 Terminal Server Clients 1 15th Jan 2004 05:32 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:47 AM.