A Free Tool Do Deal With Orphaned Processes In Citrix Sessions
Monday, 15 October 2007 by Michel Roth
Tim Mangan has written a small article on how to deal with "orphaned" processes within Published Applications.

This is when a Published Application (or A Windows Server 2008 RemoteApp) launches another process that has no visible windows. When the original Published Applications process ends, it leaves the secondary process orphaned. Since Citrix did not start this process, it will not close it either. Thus this process remain to run until the sessions gets terminated. What's even worse: the entire session will remain disconnected until it's terminated.

There's several ways to deal with this phenomenon. One is to pinpoint the process and then add it to the LogoffCheckSysModules registry to make Citrix kill that process on every Published Application end. The disadvantage of course is that you need to know about the exact orphaned process. Tim Mangan has written a small application called LaunchIT that allows you to launch another process, say outlook.exe. LaunchIT then monitors all the other processes that outlook.exe starts and when you end outlook.exe, LaunchIT will terminate all the processes that Outlook.exe started and thus leave no orphaned processes so your session ends nicely. The cool part is that LaunchIT also has a "learning" mode: if any orphaned processes are found it will popup a message informing you about those processes and asks you whether or not you want to end those processes.

Get LaunchIT over at TMurgent.com.

Related Items:

Microsoft Technet Video: Windows internals: Process And Thread Troubleshooting - Part 1 (8 May 2006)
What Happens When You Close A Windows 2008 RemoteApp? (28 September 2007)
The "Allow Only One instance Of Application For Each User" Option Does Not Work (16 February 2007)
User Mode Process Dumper Version 8.0 (11 January 2006)
User Mode Process Dumper Version 8.1 (5 April 2007)
ProcessHistory v1.1 (30 October 2006)
Understanding The Citrix MetaFrame Logon And Logoff Process (2 March 2005)
Safe Task Manager For Terminal Server Users (29 December 2008)
Process Explorer v9.2 (17 August 2005)
Windows CE 6.0 Has Been Released To Manufacturing (18 September 2006)
Comments (0)