in

Lanlogic Community Server

All you ever wanted to know about what's going on in and around Lanlogic.

Tom's Blog

Terminal Server Sessions Take 60 Seconds to Log Off

Awhile back I helped a client setup a Windows Server 2003 to run as a dedicated Terminal Server for an accounting application.

I configured a GPO (Group Policy Object) that would automatically launch the application when a user logged in, and then would also force the user's Terminal Server connection closed when they exited out of the application.

After a few weeks, the client told me that it was no longer working. The application was launching automatically just like it should, but when users exited out of the app the Terminal Server connection remained open and sitting at a blank screen.

A quick Google Groups search helped me find that this was a known problem when Service Pack 1 for Windows Server 2003 is installed.

The problem has to do with the fact that SP1 launches two instances of userinit.exe at logon. One of these instances is there for the sole purpose of performing Certification Auto Enrollment and can take up to 60 seconds to complete. If a user tries to close out of their Termianl Server session prior to this process completing, the session will remain open at a blank screen.

There is a Citrix KB article that describes both the problem, and a solution. You can create a GPO for the Terminal Server users to simply disable Certification Auto Enrollment when connecting through a Terminal Server session.

So far, this has resolved my  issue.

Published Feb 01 2006, 11:39 AM by Tom

Comments

 

Sandy T. said:

I am experiencing the same problem but it is only affecting one particular user on one of my two servers.  I tried creating a new user but that new user also experienced the same problem on both servers.  Is it possible that this affects only new users?  All the other users on the system have been on since the system was set up.

December 13, 2007 3:57 PM
 

Goku said:

i had the same issue.

the problem with mine pertained to users with a starting application upon logon.

if you are still interested email me at aramsajan@gmail.com and i will explain more.

however to solve the issue i had i instead created a batch file that int urn launches the starting application and waits for its termination.

then the batch file calls the program logoff.exe and a gracefull logoff was established.

I noticed that Vera Noest website also posted the same issue and solution:

http://ts.veranoest.net/

article/question:

User sessions don't logoff when users quit their starting or published application

January 5, 2008 2:17 PM

Leave a Comment

(required)  
(optional)
(required)  
Add
Powered by Community Server (Commercial Edition), by Telligent Systems