Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Terminal server sessions

Status
Not open for further replies.

pagy

Technical User
Sep 23, 2002
1,162
GB

Quick query - On one of my TS boxes I see the following sessions;
RDP-Tcp#110 for example but there is no user log on associated with this session just a client name (I assume the PC they are connecting from) and the only processes they have active are csrss.exe and winlogin.exe.
If I try and disconnect these sessions I get an error;
Session ID (#) disconnect failed (error 6 the handle is invalid)

What are these sessions and why can't I disconnect them?

Paul

MCSE 2003

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."
Albert Einstein
 
Could be a logoff/disc session that failed. Instead of disconnecting did you try resetting the session.
 
Ah, that makes some sense then. The TS boxes are underpowered and overused so I could well imagine logoff or disconnects failing as the box falls over in a heap again.
If I do a reset on the session not a great deal happens, the session stays there. I thought reset was just a fancy word for deleting the session??




Paul

MCSE 2003

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."
Albert Einstein
 
I tell a lie. About 10 mins after hitting reset on one of those sessions an error appears;
Session (ID27)reset failed
(Error 31 - Adevice attached to the system is not functioning)

Paul

MCSE 2003

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."
Albert Einstein
 
I'm not sure why that is happening, but one thing that I do is set a policy to automatically logoff disconnected sessions after 15 minutes and logoff idle sessions after an hour.
 
Yeah, I say try to log them off (as apposed to disconnect). If all else fails, try a reboot of the server.
 
There's a actually a policy set to logoff disconnected sessions after just 1 minute but some seem to hang around, maybe as itsp1965 says if the logoff or disconnect fails somehow. There is also a policy to logoff idle users after 30 mins.
Rebooting the server/s is all I do at the moment, they are not the healthiest terminal servers in the world.

Paul

MCSE 2003

"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."
Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top