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

Posted on 2009-04-23
Last Modified: 2013-11-21
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.
Question by:wootenj2001
    LVL 1

    Accepted Solution

    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.

    Author Comment

    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.

    Featured Post

    Do email signature updates give you a headache?

    Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

    Join & Write a Comment

    INTRODUCTION The purpose of this document is to demonstrate the Installation and configuration, of the HP EVA 4400 SAN Storage. The name , IP and the WWN ID’s used here are not the real ones. ABOUT THE STORAGE For most of you reading this, you …
    More or less everybody in the IT market understands the basics of Networking, however when we start talking about Storage Networks, things get a bit dizzier, and this is where I would like to help.
    This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
    This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

    746 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

    16 Experts available now in Live!

    Get 1:1 Help Now