1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Determine Terminal Server Session ID's from the Client

Discussion in 'Windows Home Server' started by amdrit, Sep 21, 2009.

  1. amdrit

    amdrit Guest

    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.
     
  2. Nobody

    Nobody Guest

    "amdrit" <amdrit@hotmail.com> wrote in message
    news:emZ4uIuOKHA.3724@TK2MSFTNGP02.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >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?<!--colorc--><!--/colorc-->

    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:

     
  3. Alex Clark

    Alex Clark Guest

    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" <amdrit@hotmail.com> wrote in message
    news:emZ4uIuOKHA.3724@TK2MSFTNGP02.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >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.
    > <!--colorc--><!--/colorc-->
     
  4. 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" <amdrit@hotmail.com> wrote in message
    news:emZ4uIuOKHA.3724@TK2MSFTNGP02.phx.gbl...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    >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.
    > <!--colorc--><!--/colorc-->
     

Share This Page