• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2642
  • Last Modified:

Can you restart the TS Session Broker service without it disrupting current sessions

I have six Microsoft terminal servers in a NLB cluster, running under a Windows 2008 DC. This DC is using the new TS Session Broker service (session directory?)  Sometimes I have a problem where I need to take one of the terminal servers out for maintenance. During this time, the sessions build up on the remaining servers in the cluster.  Although the NLB service and session broker is supposed to balance the load, sometimes it does not. The priority 1 server builds up until it hits it's maximum capacity. When the next person goes to connect, it does not connect to them to priority 2 server. Instead, it just says it cannot connect to the cluster.  Is there a way to make session directory forget that a particular user logged onto a particular server? Can you restart one of the services without disrupting current sessions?  In other words, I would like to be able to log off a couple of users (from the maxed server) and then have them reconnect, but the system would connect them to the east busiest server.
0
wootenj2001
Asked:
wootenj2001
1 Solution
 
ConnectNZCommented:
I have this problem all the time as well. Have you tried the "Drain" command?

Open a prompt and type "change logon /query". You can use this with /drain to deny new logons to any given server when it is maxed out or scheduled to go down for maintenance. The session broker will then direct new connections to a different server (but allow reconnections to existing sessions).  If you want to allow logons again without having to restart, there is a registry key that you can reset back to 0 - HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\TSServerDrainMode.

And yes, you can safely restart the TS Broker Service without impacting users.
0
 
wootenj2001Author Commented:
Thank you very much for the information. I'm going to test this today or tomorrow to see if  I can replicate it.  It sounds reasonable to me though, so I will probably accept the solution.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now