Incomplete Local User Profile on XenApp Server or Published Application might fail to execute

Product: ProfileUnity-FlexApp

Product Version: 6.x

Expires on: 365 days from publish date

Updated: April 21, 2015



Active setup is not running on first time user opens an application or XenApp server. Thus not completely setting up User's local profile. 

The local user's profile is under 1MB in size.

"If wfshell is not loaded, the default.profile is not created correctly. This behavior occurs because when the explorer shell is not loaded with the Run registry entry, the RunOnce registry entry and the startup applications are not loaded. If you start a published application which depends on wfshell, it might fail to load because of dependencies executed in the runonce command."

(Source: Citrix KB)


No Active Setup running. ProfileUnity client is installed and configured on XenApp server.

Example of incomplete list of folders in "AppData\Local\Microsoft" after user's login:



Possible Resolution(s):

The issue is a design problem by Microsoft. Hence, no solution can be provided by Citrix or Microsoft. However, you can refer to the workarounds.
Also, refer


Citrix: Published Application Fails to Launch Outside of Desktop Session


  1. Create the user profile by first launching a full desktop session.

  1. Start the Runonce.exe file together with the /AlternateShellStartup switch.

    1. In the server Group Policy Management Console, navigate to Local Computer Policy > User Configuration > Windows Settings.

    2. Click Scripts (Logon/Logoff), and then double-click Logon.

    3. Click Add.

    4. In the Script name box, type runonce.exe.

    5. In the Script parameters box, type /AlternateShellStartup.

    6. Click OK two times.




After workaround implementation, example of complete list of folders in  "AppData\Local\Microsoft" after user login:




Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request


Article is closed for comments.