Solved

Windows 2003 Terminal Service sessions will not logoff

Posted on 2004-10-02
5
620 Views
Last Modified: 2010-04-19
I manage a 2003 Terminal Server.  Normally, we have 30 active sessions at a time.  We run several apps including Office, Pervassive SQL client, Attachemante, and several other small apps.

Users access this server from XP and 2000 clients.

The server ran perfectly for many months.  About 2 months ago we started having a problem.  Users can not logoff the server.  They can close the session by clicking on the 'X', but when they do a start > logoff, the server appears to hang forever.

I have setup group policy to force a disconnected session to logoff after 1 minute of inactivity.  This works.  Through Terminal Manager, I can force a logoff or disconnect.

For many reasons, closing a session by logging off is a much preferred method of exiting a session.

My thinking is that this problem was possibly caused by an update, but I can't confirm this.

Any thoughts on this?
0
Comment
Question by:jpierson_jerome
  • 3
  • 2
5 Comments
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 12213797
I am running a couple of 2003 servers with the latest windows critical updates and haven't seen this issue.  Just out of curiosity, how are the user profiles managed (i.e. roaming, local, etc...)?
0
 
LVL 1

Author Comment

by:jpierson_jerome
ID: 12213881
Local only.

It was an issue of timing and ruling out everything that I could think of that led me to consider that updates were the cause.
0
 
LVL 9

Accepted Solution

by:
SamuraiCrow earned 500 total points
ID: 12214549
The reason I asked about profiles is that sometimes the profile hive gets 'gummed up'.  Check your event logs and see if you are getting any sort of event id 1000 errors at the time of logoff.  If you are you might consider using the hive cleanup tools found here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=1b286e6d-8912-4e18-b570-42470e2f3582&displaylang=en

Let me know if this helps
Crow
0
 
LVL 9

Expert Comment

by:SamuraiCrow
ID: 12214554
Oops... On 2003 the event IDs your looking for are 1517 and 1524 (1000 is the 2K error).  Good luck.
0
 
LVL 1

Author Comment

by:jpierson_jerome
ID: 12214780
I downloaded the hive tool and that didn't seem to make any difference, but...

Ya got me to thinkin.  At one point I suspected this was a profile issue and this problem also occured right after the SMS Remote Control / Mngt agent was installed.

I disabled the two services associated with SMS and another management tool.  

I then tried to rename my old local profile and couldn't. Long after I had logged off that account, the C:\Documents and Settings\jpierson\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat file was still tied up by something.  I checked and all the profiles were 'locked'.

It is late and my head is foggy, but these profiles should not be 'locked' if there is no one logged on - correct?

So I figured, maybe the hive tool wouldn't work unless I rebooted - the service was running, but if the profiles were tied up then maybe the hive tool couldn't work.  Apparently (I am guessing) that was the case.  My profiles are now 'unlocked' and I can logoff properly.  In fact, the logoff is quicker than ever.

I believe your suggestions was correct. BUT, I didn't have any of the associated events in my event logs.

FYI, I don't think SMS or the other management tool have anything to do with my problem, I added that just to try to make the documentation complete.  I still have them disabled.  Sometime this week, I will re-enable the services just to make sure they weren't part of the problem.

Thanks for the help.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now