From: Bob Campbell on
There is an environment variable, sessionname, on a terminal session. Where
can I find the session ID? As a workaround, I see it at the end of the tmp
and temp environment variables.

From: Divya Bhagavan[MSFT] on
Hi Bob,

Can you check if issuing "qwinsta" command(from cmd) can help you to get
what you are looking for?

Thanks
Divya

"Bob Campbell" <softwaretailor(a)msn.com> wrote in message
news:6E66FDB4-6BCD-40A2-B050-F512EC5504D1(a)microsoft.com...
> There is an environment variable, sessionname, on a terminal session.
> Where
> can I find the session ID? As a workaround, I see it at the end of the tmp
> and temp environment variables.
>

From: Bob Campbell on
Yes. I'm using Windows Server 2008 SP2 [Version 6.0.6002]. I think it will
work for my needs. Thanks Divya.
P.S. Are you in Phoenix AZ?

"Divya Bhagavan[MSFT]" <divyab(a)microsoft.com> wrote in message
news:ef#C4zN4KHA.5416(a)TK2MSFTNGP06.phx.gbl...
Hi Bob,

Can you check if issuing "qwinsta" command(from cmd) can help you to get
what you are looking for?

Thanks
Divya

"Bob Campbell" <softwaretailor(a)msn.com> wrote in message
news:6E66FDB4-6BCD-40A2-B050-F512EC5504D1(a)microsoft.com...
> There is an environment variable, sessionname, on a terminal session.
> Where
> can I find the session ID? As a workaround, I see it at the end of the tmp
> and temp environment variables.
>
From: Soo Kuan Teo [MSFT] on
You can also use our WTSAPI ProcessIdToSessionId() to get your session's
sessionID:
http://msdn.microsoft.com/en-us/library/aa382990(v=VS.85).aspx
Can you please share what are you trying to achieve?
Thanks
Soo Kuan

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


"Bob Campbell" <softwaretailor(a)msn.com> wrote in message
news:edBmJKO4KHA.3728(a)TK2MSFTNGP06.phx.gbl...
> Yes. I'm using Windows Server 2008 SP2 [Version 6.0.6002]. I think it will
> work for my needs. Thanks Divya.
> P.S. Are you in Phoenix AZ?
>
> "Divya Bhagavan[MSFT]" <divyab(a)microsoft.com> wrote in message
> news:ef#C4zN4KHA.5416(a)TK2MSFTNGP06.phx.gbl...
> Hi Bob,
>
> Can you check if issuing "qwinsta" command(from cmd) can help you to get
> what you are looking for?
>
> Thanks
> Divya
>
> "Bob Campbell" <softwaretailor(a)msn.com> wrote in message
> news:6E66FDB4-6BCD-40A2-B050-F512EC5504D1(a)microsoft.com...
>> There is an environment variable, sessionname, on a terminal session.
>> Where
>> can I find the session ID? As a workaround, I see it at the end of the
>> tmp
>> and temp environment variables.
>>