Anybody want to try this? ThinFan got me thinking, so I used an ASP.NET property (Request.UserHostName) that reads the HTTP values sent by a client during a Web request. I haven't tested workspace control as we're not using it yet, but I do get the hostname of the client machine set as the client name. Note: this will return the IP address (only the first octet because of the split I'm doing) of the client machine unless you enable reverse dns lookups in IIS using the command below. cscript C:\inetpub\adminscripts\adsutil.vbs set /w3svc/1/ROOT/EnableReverseDNS "TRUE" In session.cs replace this; // Get the client name to use (create a new one, if necessary) String clientName = (String)deviceState.get(COOKIE_LOGIN_CLIENT_NAME); if (!MPSClientNames.isValidUniqueName(clientName)) { if( config.getWorkspaceControlConfiguration().getEnabled() ) { clientName = MPSClientNames.generateUnique(); deviceState.put(COOKIE_LOGIN_CLIENT_NAME, clientName); // Remember for future sessions } else { // Use the old client name format when Workspace Control is disabled for // compatibility (MPS/U and MF1.8 need the old format to do roaming // reconnection). clientName = MPSClientNames.fromAccessToken( accessToken ); } } With this; // Get the client name to use (create a new one, if necessary) String client = Request.UserHostName; // split the string, removing the dns suffix. For some reason WI does not like the fqdn of my machine - maybe it's too long string[] client1 = client.Split('.'); string clientName = client1[0]; //write the hostname to the cookie deviceState.put(COOKIE_LOGIN_CLIENT_NAME, clientName); Regards, Ormond Merino -----Original Message----- From: Joe Shonk [mailto:joe.shonk@xxxxxxxxx] Sent: Tuesday, August 02, 2005 12:01 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Current Clientname W32Name with reconnact! is about about as I can get to have the best of both worlds. The draw back is workspace control works about 95% of the time with 5% of the time users have to enter their credentials again (as we also auto-launch and force a logoff) Joe -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Selinger, Stephen Sent: Tuesday, August 02, 2005 7:18 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Current Clientname I agree. I have an application that relies on the local computer name to be the client name and I also need workspace control. Anyone else have these requirements and find a fix? All the workstations are uniquely identified throughout our network. -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Toby Sent: Tuesday, August 02, 2005 8:05 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Current Clientname I can't........I will have to do without Workspace Control. On 8/2/05, Selinger, Stephen <SSelinger@xxxxxxxxx> wrote: > What if you want the computer name to be the client name and still > require workspace control? > > -----Original Message----- > From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On > Behalf Of Thin Fan > Sent: Monday, August 01, 2005 11:55 AM > To: thin@xxxxxxxxxxxxx > Subject: [THIN] Re: Current Clientname > > Yes that was my snippet froma few weeks ago - modifying the session.cs > > One thing to note, that will provide you Domain-UserID as a result. > If you want only UserID then you need to do some additional coding to > trim the 'Domain-' from UserID. > > That's what we did. > > ThinFan > > > On 8/1/05, Evan Mann <emann@xxxxxxxxxxxxxxxxxxxxx> wrote: > > This was posted by another member a few weeks back: > > ----- > > I saw that someone already responded with the published Citrix > > solution, however that method disables workspace control. > > > > We therefore took a different route: We modified the Session.cs file > > and left workspace control enabled. Now we get User Name (not > > domain-username) for the Client ID AND we have workspace control > > still. > > > > We are still testing this method to assure no other problems, but so > > far it looks good. > > > > Session.cs info: > > > > Here is the original Code > > > > Change these lines to decide how the client name is chosen: > > > > // Get the client name to use (create a new one, if necessary) > > > > String clientName = > > (String)deviceState.get(COOKIE_LOGIN_CLIENT_NAME); > > > > if (!MPSClientNames.isValidUniqueName(clientName)) { > > > > if( > > config.getWorkspaceControlConfiguration().getEnabled() ) { > > > > clientName = MPSClientNames.generateUnique(); > > > > deviceState.put(COOKIE_LOGIN_CLIENT_NAME, clientName); // > > Remember for future sessions > > > > } else { > > > > // Use the old client name format when Workspace Control > > is disabled for > > > > // compatibility (MPS/U and MF1.8 need the old format to > do > > roaming > > > > // reconnection). > > > > clientName = MPSClientNames.fromAccessToken( accessToken > ); > > > > } > > > > } > > > > For example, replacing the lines above with this should always use the > > client name derived from the username: > > > > // Always determine the client name from the user's identity > > > > String clientName = MPSClientNames.fromAccessToken( accessToken ); > > > > ________________________________ > > From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On > Behalf > > Of Joe Shonk > > Sent: Monday, August 01, 2005 1:45 PM > > To: thin@xxxxxxxxxxxxx > > Subject: [THIN] Current Clientname > > > > > > > > > > Hello, > > > > > > > > Does anyone know any honest to goodness utility/tool that will give > you the > > ACTUAL clientname of workstation you are on? At the same time > allowing > > Citrix Workspace control to function correctly? > > > > > > > > Adding ; to template.ica breaks workspace control. > > > > W32Name from www.citrix4ge.de works intermittently. (User can roam 2-3 > times > > before it breaks. Active sessions set disconnected and do not > reconnect) > > > > Reconnact!.exe reports the WI_RanDoMBUllCrAp clientname as the > > current_clientname for the PC/ThinClient that created the initial > session > > (Roam to another station and it reports Current_clientname correctly, > roam > > back and we are back to WI_RanDoMBUllCrAp clientname) > > > > > > > > Joe > ******************************************************** > This weeks sponsor: SuperSpeed > Try Us To improve performance along with other agents! > FREE 30-day Trial! > http://www.superspeed.com/servers/computing.php?ID0 > ********************************************************** > Useful Thin Client Computing Links are available at: > http://thin.net/links.cfm > ThinWiki community - Excellent SBC Search Capabilities! > http://www.thinwiki.com > *********************************************************** > For Archives, to Unsubscribe, Subscribe or > set Digest or Vacation mode use the below link: > http://thin.net/citrixlist.cfm > > > ******************************************************** > This weeks sponsor: SuperSpeed > Try Us To improve performance along with other agents! > FREE 30-day Trial! > http://www.superspeed.com/servers/computing.php?ID0 > ********************************************************** > Useful Thin Client Computing Links are available at: > http://thin.net/links.cfm > ThinWiki community - Excellent SBC Search Capabilities! > http://www.thinwiki.com > *********************************************************** > For Archives, to Unsubscribe, Subscribe or > set Digest or Vacation mode use the below link: > http://thin.net/citrixlist.cfm > ******************************************************** This weeks sponsor: SuperSpeed Try Us To improve performance along with other agents! FREE 30-day Trial! http://www.superspeed.com/servers/computing.php?ID0 ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community - Excellent SBC Search Capabilities! http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This weeks sponsor: SuperSpeed Try Us To improve performance along with other agents! FREE 30-day Trial! http://www.superspeed.com/servers/computing.php?ID0 ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community - Excellent SBC Search Capabilities! http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This weeks sponsor: SuperSpeed Try Us To improve performance along with other agents! FREE 30-day Trial! http://www.superspeed.com/servers/computing.php?ID0 ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm ThinWiki community - Excellent SBC Search Capabilities! http://www.thinwiki.com *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ----------------------------------------- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.