I've got the some solution for a cmd file. My solution was the following to create a dos environment that can be used to connect to shares. for /f "tokens=3" %%I in ('"qwinsta | find /I /V " ica-tcp" | find /I "ica-tcp#""') do set EMCONSOLE_ID=%COMPUTERNAME%_%%I But I would like to get the Session ID information via MFCOM. Any Ideas ? Tnx -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Jan Broucinek Sent: vrijdag 16 januari 2004 23:20 To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Getting User ID/Reading User's Environment Variables Here is a piece of code that I use to do just that. quser/server:servername| find "%1" > servername.lst for /f "tokens=3" %%i in (servername.lst) do shadow/server:servername%%i Goto End: ----- Original Message ----- From: "Chris De Jongh" <Chris.De.Jongh@xxxxxxxxxx> To: <thin@xxxxxxxxxxxxx> Sent: Friday, January 16, 2004 5:08 PM Subject: [THIN] Re: Getting User ID/Reading User's Environment Variables > Is there a way you can get the SESSION ID (see 3rd column when starting > qwinsta or query user from a dos box). > > Tnx > > Chris > > -----Original Message----- > From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf > Of Jeff Durbin > Sent: vrijdag 16 januari 2004 9:09 > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: Getting User ID/Reading User's Environment Variables > > You can do it with VBScript (or Kix, presumably) during login, or at any > time thereafter. For example: > > Set WshShell = WScript.CreateObject("WScript.Shell") > Set WshSysEnv = WshShell.Environment("PROCESS") > msgbox WshSysEnv("USERNAME") > msgbox WshSysEnv("SESSIONNAME") > > Jeff Duribin > > -----Original Message----- > From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf > Of Columna, Melvin > Sent: 16 January 2004 10:16 AM > To: 'thin@xxxxxxxxxxxxx' > Subject: [THIN] Getting User ID/Reading User's Environment Variables > Importance: High > > > Hi Gang, > > We are using MF18AFR2 for Windows 2000 and NFUSE 1.7 with Anonymous > published app. > > How can I read the Anonymous user's environment variables ? > > Or at least, figure out their USER ID. > > . > . > . > -------------------------------------------------------------------- -------- > -------------- > Melvin Columna > Jascom Solutions, Inc. > http://www.JascomSolutions.com > eMail: thin-list@xxxxxxxxxxxxxxxxxxx <mailto:thin-list@xxxxxxxxxxxxxxxxxxx> > > -------------------------------------------------------------------- -------- > -------------- > > ******************************************************** > 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 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 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