What is the difference between autostart (Start\Programs\Startup\) with Citrix and without Citrix

Posted on 2008-10-15
Last Modified: 2012-08-13

I have various XP machines which automatically launch a certain program when any user logs in:

C:\Documents and Settings\All Users\Start Menu\Programs\Startup\MyProgram.exe

For some reason this routine is not kicked off when users logon using Citrix.  Any ideas why?

Question by:John500
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 18

Accepted Solution

mgcIT earned 400 total points
ID: 22722830
in your citrix server are there actually applications in the Startup folder?  Just because they are on the XP machine wouldn't make them run when you login to Citrix.

If they are in the startup folder on the Citrix server then, this folder could be blocked by Group Policy, or if you were only opening published applications the Startup Folder is ignored unless explorer.exe is started in that session.

Author Comment

ID: 22723328

Ok, appreciate that input, can you also take a look at this question:

I verified the Citrix server(s) do have the shortcut to the executable.  So I'm not sure if there might be more to consider.  Another common denominator might be how the issue also happens with 2008 TS

LVL 85

Assisted Solution

oBdA earned 100 total points
ID: 22724353
Are you using Published Applications or a Published Desktop?
If the former, then that behavior is 'by design', after a fashion. The startup folder as well as the HKLM/HKCU\...\Run keys will only be processed by explorer.exe running as the primary shell, that is, when a normal desktop session is started. When you're using Published Applications, explorer.exe is never started, so neither of these startup elements will work.
It's best to start your application using a logon script.
LVL 18

Expert Comment

ID: 22724586
the question you linked above has been deleted.

2008 TS wouldn't have anything to do with it (although, yes probably has the same issue).  Are you using published applications or published desktops?

Author Comment

ID: 22725828
Thanks to all, I found the statement in the code of the executable itself that checks to see what kind of session it is:

if (!CCObjects.Security.WinSessions.SessionType.Equals("ICA") || MainInit.CheckPermission())

 public static string SessionType
      bool sessionInfo = Externals.WTSQuerySessionInformation(System.IntPtr.Zero, WTS_CURRENT_SERVER_HANDLE, Structures.WTS_INFO_CLASS.WTSClientProtocolType, out buffer, out bytesReturned);
     SessionType = (Structures.WTS_CLIENTPROTOCOL_TYPE)Marshal.ReadInt16(buffer);

switch (SessionType)
              sessiontype_ = "Console";
                sessiontype_ = "ICA";
              sessiontype_ = "RDP";
              sessiontype_ = "???";
return sessiontype_;



Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Citrix XenDesktop 7.6 Citrix Policies Graphics
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question