Upon logon the sessionname variable is dynamically generated for that session and would look like "ICA-tcp#184" (each session name having a unique number) Find - looks for ICA-tcp within the session name and returns an errorlevel of "0" if it finds the string. If the string is not found "Find" returns an errorlevel of "1" If connecting via RDP sessionname would look like "RDP-Tcp#24" if logging on to a workstation Sessionname would not exist and so look like "" -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On Behalf Of Pilon, Benoit Sent: Tuesday, March 16, 2004 10:14 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Check for Citrix at logon Thanks very much for the tips. It does work but I'm curious. Where does it find the string "ICA-tcp" and return the sessionname ? From a file ? Benoit Pilon Network Operations NavCanada (613) 563-5508 =20 -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Pfeifer, Bruce A MSER:EX Sent: March 16, 2004 11:28 AM To: 'thin@xxxxxxxxxxxxx' Subject: [THIN] Re: Check for Citrix at logon echo %sessionname% | find /I "ICA-tcp" if %errorlevel%=3D=3D0 goto (GOTO:EOF) This simple option requires no additional work on the servers (such as setting variables) and can be used to distinguish if a RDP session vs. an ICA session. echo %sessionname% | find /I "RDP-Tcp" if %errorlevel%=3D=3D0 goto (GOTO:EOF) -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx]On Behalf Of Matt Kosht Sent: Tuesday, March 16, 2004 07:12 AM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: Check for Citrix at logon Check the variable %COMPUTERNAME% and use that in your login script to conditionally branch to a different login script. >>> PilonB@xxxxxxxxxxxx 3/16/2004 10:08:56 AM >>> I have to run a domain script at logon on each workstation but I don't want this script to run when they logon to a Citrix server. Is there a way to check if it is a Citrix server when they logon? I don't want to check for a file or folder since the location might be different on each Citrix server. Benoit Pilon Network Operations NavCanada (613) 563-5508 =3D20 ******************************************************** This weeks sponsor Emergent Online. Emergent OnLine is the leading server-based computing consulting integration firm in the nation. Emergent OnLine delivers expert=20 consulting services you can depend on. http://www.go-eol.com=20 ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm=20 *********************************************************** For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This weeks sponsor Emergent Online. Emergent OnLine is the leading server-based computing consulting integration firm in the nation. Emergent OnLine delivers expert=20 consulting services you can depend on. http://www.go-eol.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This weeks sponsor Emergent Online. Emergent OnLine is the leading server-based computing consulting integration firm in the nation. Emergent OnLine delivers expert=20 consulting services you can depend on. http://www.go-eol.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or=20 set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This weeks sponsor Emergent Online. Emergent OnLine is the leading server-based computing consulting integration firm in the nation. Emergent OnLine delivers expert consulting services you can depend on. http://www.go-eol.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm ******************************************************** This weeks sponsor Emergent Online. Emergent OnLine is the leading server-based computing consulting integration firm in the nation. Emergent OnLine delivers expert consulting services you can depend on. http://www.go-eol.com ********************************************************** Useful Thin Client Computing Links are available at: http://thin.net/links.cfm *********************************************************** For Archives, to Unsubscribe, Subscribe or set Digest or Vacation mode use the below link: http://thin.net/citrixlist.cfm