Hi,

Occasionally we have lot’s of users with disconnected sessions. The users then try to reconnect but can’t as the farm has so many disconnected sessions. Often the quickest thing to do is reboot the server as it will force the disconnected sessions to go. Unfortunately that impacts other users on that server with active sessions.

Can anyone suggest a way to forcibly remove the disconnected sessions without rebooting please?

Thank you in advance.

3 Spice ups

You should be able to end a disconnected session through the console. Also if this is a recurring problem set the time limit to log off disconnected sessions via gpo or via the RDS management. Here is another thread about it… I didnt read it all but looks promising for you.

I agree with id10tgump. The only thing I could add would be to deploy a second server to your collection to load balance if the issue is being caused by the total number of connected users.

If all the users are just 8-5 then you could consider scheduling a nightly reboot to clear any hung sessions if setting the time limit doesn’t do the trick.

I ran into this a lot when working at a MSP that was a Citrix shop. I would log into the Citrix server, open up task manager, go to the Users tab, and log them off.

Check your re-connection policies to ensure everything is as it should be for client connections. Sounds like you need some policy tweaking and tests for clients to reconnect to disconnected sessions. If they do not need to reconnect to disconnected session make it so disconnected sessions are logged off automatically within a few minutes, so they are forced to start a new session. It all depends on what apps are running on hosts and work flow of end users, you can ascertain what needs to be done from that information.

Usually I find file locks on the file server where user roaming profiles and file shares are stored can leave a session in disconnected state, sometimes it may be an app server lock. Go to the file server and check Storage Management, look for usernames of disconnected sessions on the farm, disconnect them from here (close file and/or session) then they will be able to log off from the host without disrupting anyone else on that same host. You want to avoid doing this though, it should be done automagically by policy.