- Log onto the terminal server and open the Remote Desktop Services Manager.
- Select the terminal server you are logged onto in the left hand pane. (if you are logged on remotely you may not have sufficient permissions to end processes).
- Get the Session ID of the hung session(s)
- Click on the Sessions tab. Look for sessions which display the following characteristics (as the image above):
- Session: Disconnected
- User: [BLANK]
- State: Disconnected
- ClientName: [BLANK]
- LogOnTime: Unknown
- Take note of the ID field. In the screen shot above this is "6".
- NOT REQUIRED: This step is not required but can be useful: If you right click on the session, click "Connect", enter a domain administrators password and click ok, you can connect to the session and can see at what stage the login has hung.
- Free the hung session(s)
- Click on the Processes tab, click on the ID column to sort the processes by ID. Scroll down through the list and find processes matching the ID gathered from the previous step (in this example "6")
- Commonly with this particular error, only 3 processes will be visible - LogonUI.exe, winlogon.exe, and csrss.exe
- Right click on winlogon.exe and click End Process. Once you end this process the other 2 should disappear. WARNING: do not end csrss.exe, this will crash and reboot your terminal server.
- Now get the user who was having difficulties logging on to try again.
Cheers
Microsoft has released a hotfix that may fix this issue:
ReplyDeletehttp://support.microsoft.com/kb/2383928
Thanks for this!
ReplyDeleteHad the same issue with a user this morning and this solved it.
Cheers!!
1st post - Thanks for the hotfix link, unfortunately it has not solved the issue. It seems to especially happen after rebooting a terminal server. Could have something to do with our Domain Controller being Windows 2003. I'm hoping upgrading the DC to 2008 R2 will resolve the issue. Will keep you posted.
ReplyDelete2nd post - your welcome! glad it helped!
did your dc upgrade fix anything? i'm having the same issue?
ReplyDeleteI can tell you we have a 2008 DC and we have the problem.
ReplyDeleteI'd be interested to find out what setup everyone has that is experiencing this issue, if we can find a common denominator the source could be identified. Primarily information about the terminal server machines and machines hosting services used by terminal server (eg. DNS, domain controller, group policy, remote desktop service role services).
ReplyDeleteHere's my setup (high level view):
- 1x Windows 2003 SBS x86 Domain Controller, DNS server (not all updates applied, group policy extensions update scheduled)
- 2x Windows 2008 R2 SP1 x64 with Remote Desktop Session Host role service installed, configured to use session broker. All updates applied.
- 1x Windows 2008 SP2 x86 with TS Licensing and TS Session Broker role services installed. Our 2 terminal server's point to this for session broker & licensing.
Is anyone getting this issue with a single terminal server? Or are we all using the TS Session Broker?
Also, I've noticed this issue commonly arises after rebooting the terminal servers.
Anyone found a permanent fix for this yet? We have it on a fully patched 2008 R2 Xenapp 6.5 farm :(
ReplyDeleteI have one a Dell PowerEdge with SBS 2011 sp1 [AD DS, DNS, DHCP, RDS and Exchange] roles installed on it. Recently I'm getting this error. Unfortunately all the two administrator were logged remote and got locked out. Now we have to reboot the server to manually kill the sessions which are stacked.
ReplyDeleteSheltonial, I'm providing this info in connection with your last post.
I have the same issue with all patchs from Microsoft or Citrix that are supposed to coorect this problem.
ReplyDeleteWindows Thin Client & Citrix Thin Client
This comment has been removed by a blog administrator.
ReplyDeletehttp://support.microsoft.com/kb/2465772
ReplyDeletehttp://support.microsoft.com/kb/2383928
ReplyDeleteSo the problem is:
ReplyDelete"cannot log into terminal server"
... and the _solution_ starts with:
"log into the terminal server"
... am i the only one seeing the problem with that? To resolve the catch 22 part, you's have to open Terminal Services Manager" on a different server and connect to the failing server, or use the "reset session" with a /server: flag.
I'm having the same question. It happens when I try to log into server.
ReplyDelete