Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

CitrixConnectIcaData CitrixEngine: 6 - Connect failed when running from Windows Task Scheduler

CitrixConnectIcaData CitrixEngine: 6 - Connect failed when running from Windows Task Scheduler

When trying to schedule a Citrix load test using a batch file and Windows Task Scheduler the test runs fine when double clicking the batch file but when the batch file is executed through Windows Task Scheduler the load test results in error CitrixConnectIcaData(CitrixEngine: 6 - Connect failed).

In Task Scheduler there is an option on the general tab of the task properties which determines whether the task should be run only when the user is logged on or whether the user is logged on or not.

Choosing the option to run when user is logged on or not will force the task to start the processes within session zero of the operating system.  Citrix process wfcrun32.exe has a compatibility issue with session zero and this is the underlying cause of the issue.

This issue occurs in Windows Vista/Windows Server 2008 operating systems and onward.  These operating systems have a feature called session zero isolation which prevents services from elevation of privileges exploits.  If no user is logged on and a service or process needs to run it runs in session zero.  A logged on user runs in session one.  If a service needs to be able to operate whether a user is logged on or not then it will run in session zero by default.  

The solution is to select the run only when user is logged on option.  This limitation exists between Windows and Citrix - Silk Performer is not directly affected.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-07-23 19:19
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.