You would put it on each Citrix server. For Windows 2000, right click on My Computer>Properties>Advanced>Environment Variables>under System Variables. -----Original Message----- From: Bruno Petitti [mailto:bruno@xxxxxxxxxxxxx] Sent: Thursday, November 13, 2003 1:57 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: User Logon Scripts Where would I put that environment variable? -----Original Message----- From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf Of Spencer Sun Sent: Thursday, November 13, 2003 1:03 PM To: thin@xxxxxxxxxxxxx Subject: [THIN] Re: User Logon Scripts One client had a pretty elegant solution. They added an environment variable to each system, something like %platform%=Citrix, then the scripts queried this variable and acted accordingly. ----- Original Message ----- From: Luchette, <mailto:JLuchette@xxxxxxxxxxxxxxx> Jon To: 'thin@xxxxxxxxxxxxx' <mailto:'thin@xxxxxxxxxxxxx'> Sent: Thursday, November 13, 2003 11:22 AM Subject: [THIN] Re: User Logon Scripts You could pick out a file that would only be resident on a terminal server, and at the beginning of the script run a check to see if that file exists. You could script it to run if the file does not exist, and to terminate should that file exist. -----Original Message----- From: Petitti, Bruno [mailto:bpetitti@xxxxxx] Sent: Thursday, November 13, 2003 11:28 AM To: 'thin@xxxxxxxxxxxxx' Subject: [THIN] User Logon Scripts Currently we are running Metaframe XP FR2 on Windows 2000 servers. Our domain controllers are Windows 2000 as well.. When a user logs onto the domain, a log on script runs creating drive mapping and creates/installs printers depending on group membership. The problem, we have is that the script runs again when the user launches a Citrix application. The script runs successfully creating the drive mappings but then hangs on the printer creation. Is there a way to stop the script from running in a terminal server situation or is there a better over all solution that will resolve this issue Thanks for all your help in advance