[THIN] Re: SessionID in in HKCU\Volatile Environment

  • From: Brian Lilley <Brian.Lilley@xxxxxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Thu, 15 Jan 2004 13:42:08 -0000

when you say session id, do you mean the NT process id for the instance of
the users winstation thingy?
If so I think that Neil's solution would be the way..  unfortunately, the
scripts I have are onsite with my customer.. who is the Police here in sunny
old England, and so I am unable to dial-in to copy... my apologies, I
thought I had a copy....

cheers, Brian

-----Original Message-----
From: chris.de.jongh@xxxxxxxxxx [mailto:chris.de.jongh@xxxxxxxxxx]
Sent: 15 January 2004 13:33
To: thin@xxxxxxxxxxxxx; 'thin@xxxxxxxxxxxxx'
Subject: [THIN] Re: SessionID in in HKCU\Volatile Environment 


Brian,

I've got the Scripting Metaframe pdf but unfortunally I did'nt succeed it to
get the session id via vb scripting.
I'm looking forward to get som examples.

Tnx


Chris

>----- Oorspronkelijk bericht -----
>Van
: Brian Lilley [mailto:Brian.Lilley@xxxxxxxxxxxxx]
>Verzonden
: donderdag
, januari
 15, 2004 10:39 AM
>Aan
: 'thin@xxxxxxxxxxxxx'
>Onderwerp
: [THIN] Re: SessionID in in HKCU\Volatile Environment 
>
>Chris, I'm pretty sure what you want can be acheived using the Metaframe
COM
>stuff in the Citrix SDK.  That's not as scary as it sounds.. you create an
>instance of a Citrix MFCOM object and fire some methods to get the info you
>want....
>
>I will see if I can dig out some examples for you..
>
>in the meantime, there is an excellent 'Scripting Metaframe' manual
knocking
>about somewhere... again, I'll try and dig it out for you.
>
>Cheers, Brianos
>
>-----Original Message-----
>From: chris.de.jongh@xxxxxxxxxx [mailto:chris.de.jongh@xxxxxxxxxx]
>Sent: 15 January 2004 10:26
>To: thin@xxxxxxxxxxxxx
>Subject: [THIN] SessionID in in HKCU\Volatile Environment 
>
>
>Hi,
>
>I'm having an intersting question and I hope someone can help me.
>As you can see below several user environment settings are created.
>
>Windows Registry Editor Version 5.00
>[HKEY_CURRENT_USER\Volatile Environment]
>"LOGONSERVER"="\\\\SBSADMIN01D"
>"CLIENTNAME"="SBSADMIN-dadejongch"
>"SESSIONNAME"="ICA-tcp#40"
>"APPDATA"="C:\\Documents and Settings\\dadejongch\\Application Data"
>
>Is there any way to add the current sessionID of the logged in user so it
>can be referecned from the users environment (ex. %SESSIONID% in scripts).
>I would like to have the following
>
>Windows Registry Editor Version 5.00
>[HKEY_CURRENT_USER\Volatile Environment]
>"LOGONSERVER"="\\\\SBSADMIN01D"
>"CLIENTNAME"="SBSADMIN-dadejongch"
>"SESSIONNAME"="ICA-tcp#37"
>"APPDATA"="C:\\Documents and Settings\\dadejongch\\Application Data"
>"SESSIONID"="1"
>
>SESSION must be the same ID number as viewed by qwinsta command in a dos
box
>see below
>
>qwinsta
> SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
> console                                     0  Conn    wdcon
> ica-tcp                                 65536  Listen  wdica
> rdp-tcp                                 65537  Listen  rdpwd
>>ica-tcp#37        dadejongch                1  Active  wdica
>                                             5  Idle
>                                             3  Idle
>
>I'm looking forward to get some feedback from the guru's.
>
>Tnx
>
>Chris
>
>
>
>
>
>
>
>********************************************************
>This Week's Sponsor - RTO Software / TScale
>What's keeping you from getting more from your terminal servers? Did you
>know, in most cases, CPU Utilization IS NOT the single biggest constraint
to
>scaling up?! Get this free white paper to understand the real constraints &
>how to overcome them. SAVE MONEY by scaling-up rather than buying more
>servers. http://www.rtosoft.com/Enter.asp?ID=147
>*********************************************************
>Useful Thin Client Computing Links are available at:
>http://thethin.net/links.cfm
>***********************************************************
>For Archives, to Unsubscribe, Subscribe or 
>set Digest or Vacation mode use the below link:
>http://thethin.net/citrixlist.cfm
>
>_____________________________________________________________________
>
>This message has been checked for all known viruses on behalf of Vivista by
>MessageLabs. 
>
>http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx
>
>Vivista formerly Securicor Information Systems for further information
>http://www.vivista.co.uk  
>
>
>
>**********************************************************************
>The information contained in this e-mail message is intended
>only for the individuals named above.  If you are not the 
>intended recipient, you should be aware that any 
>dissemination, distribution, forwarding or other duplication 
>of this communication is strictly prohibited.  The views 
>expressed in this e-mail are those of the individual author 
>and not necessarily those of Vivista Limited.  
>Prior to taking any action based upon this e-mail message 
>you should seek appropriate confirmation of its authenticity.
>If you have received this e-mail in error, please immediately 
>notify the sender by using the e-mail reply facility.
>**********************************************************************
>
>
>_____________________________________________________________________
>
>This message has been checked for all known viruses on behalf of Vivista by
MessageLabs. 
>
>http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx
>
>Vivista formerly Securicor Information Systems for further information
http://www.vivista.co.uk  
>
>********************************************************
>This Week's Sponsor - RTO Software / TScale
>What's keeping you from getting more from your terminal servers? Did you
>know, in most cases, CPU Utilization IS NOT the single biggest constraint
to
>scaling up?! Get this free white paper to understand the real constraints &
>how to overcome them. SAVE MONEY by scaling-up rather than buying more
>servers. http://www.rtosoft.com/Enter.asp?ID=147
>*********************************************************
>Useful Thin Client Computing Links are available at:
>http://thethin.net/links.cfm
>***********************************************************
>For Archives, to Unsubscribe, Subscribe or 
>set Digest or Vacation mode use the below link:
>http://thethin.net/citrixlist.cfm
>
>
>


********************************************************
This Week's Sponsor - RTO Software / TScale
What's keeping you from getting more from your terminal servers? Did you
know, in most cases, CPU Utilization IS NOT the single biggest constraint to
scaling up?! Get this free white paper to understand the real constraints &
how to overcome them. SAVE MONEY by scaling-up rather than buying more
servers. http://www.rtosoft.com/Enter.asp?ID=147
*********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

_____________________________________________________________________

This message has been checked for all known viruses on behalf of Vivista by
MessageLabs. 

http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx

Vivista formerly Securicor Information Systems for further information
http://www.vivista.co.uk  



**********************************************************************
The information contained in this e-mail message is intended
only for the individuals named above.  If you are not the 
intended recipient, you should be aware that any 
dissemination, distribution, forwarding or other duplication 
of this communication is strictly prohibited.  The views 
expressed in this e-mail are those of the individual author 
and not necessarily those of Vivista Limited.  
Prior to taking any action based upon this e-mail message 
you should seek appropriate confirmation of its authenticity.
If you have received this e-mail in error, please immediately 
notify the sender by using the e-mail reply facility.
**********************************************************************


_____________________________________________________________________

This message has been checked for all known viruses on behalf of Vivista by 
MessageLabs. 

http://www.messagelabs.com or Email: mailsweeper.info@xxxxxxxxxxxxx

Vivista formerly Securicor Information Systems for further information 
http://www.vivista.co.uk  

********************************************************
This Week's Sponsor - RTO Software / TScale
What's keeping you from getting more from your terminal servers? Did you
know, in most cases, CPU Utilization IS NOT the single biggest constraint to
scaling up?! Get this free white paper to understand the real constraints &
how to overcome them. SAVE MONEY by scaling-up rather than buying more
servers. http://www.rtosoft.com/Enter.asp?ID=147
*********************************************************
Useful Thin Client Computing Links are available at:
http://thethin.net/links.cfm
***********************************************************
For Archives, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
http://thethin.net/citrixlist.cfm

Other related posts: