Prev: SmartCard removal monitoring in GINA under Terminal Services / Citrix
Next: Printers not showing up for Win7 clients
From: Bob Campbell on 20 Apr 2010 16:54 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 20 Apr 2010 18:58 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 20 Apr 2010 19:38 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 21 Apr 2010 13:11
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. >> |