How to troubleshoot down terminal service/CITRIX sessions, when the process just won’t terminate

citrixwindows-terminal-services

Running a CITRIX presentation server farm, version 4.5.6 on Windows 2003 sp2.

In the CITRIX Access Management Console, I sometimes get a session that shows it's in a down state – but has none of the normal info associated with it (user name, applications, client name, idle time, etc…).

It does say which servers it's on, so I check out that server's terminal services manager. I can see the down session but cannot reset it. I get:

(Error 7024 – the requested operation
cannot be completed because the
terminal connection is currently busy
processing a connect, disconnect,
reset, or delete operation.)

So I go to the task manager and look up the processes running under that session id. I see it's one of my published apps, but when I try to end the process – it simply does nothing and the process remains.

Any way to get rid of these sessions without a server reboot?

Best Answer

Connect to the offending server (RDP or psexec to the command line) and do a qwinsta. It will show you the down listener (usually it will be session 6553x). Note that number, then run rwinsta 6553x with 6553x being the number of the down listener.