Partager via


Event ID 1012 — Joining TS Session Broker

Applies To: Windows Server 2008

Terminal Services Session Broker (TS Session Broker) is a Terminal Services role service in Windows Server 2008 that supports session load balancing between terminal servers in a farm, and reconnection to an existing session in a load-balanced terminal server farm.

In order for the terminal server to join a farm in TS Session Broker, the terminal server must be able to communicate with the TS Session Broker server across the network. In addition, the computer account for the terminal server must be a member of the Session Directory Computers local group on the TS Session Broker server.

Note:  TS Session Broker was formerly called Terminal Services Session Directory.

Event Details

Product: Windows Operating System
ID: 1012
Source: Microsoft-Windows-TerminalServices-SessionBroker-Client
Version: 6.0
Symbolic Name: EVENT_JOIN_SESSIONDIRECTORY_FAIL
Message: The server failed to join TS Session Broker.
Win32 error code: %1

Resolve

Check firewall settings and try to join TS Session Broker again

To resolve this issue, do the following:

  • Check firewall settings to ensure that RPC communication is not blocked between the terminal server and the TS Session Broker server.
  • Try to join the terminal server to a farm in TS Session Broker again.

If the problem persists, restart the Terminal Services Session Broker service on the TS Session Broker server and then try to join the terminal server to a farm in TS Session Broker again. If the problem still persists, restart the terminal server and then try to join the terminal server to a farm in TS Session Broker again.

To perform these tasks, refer to the following sections.

Check firewall settings

To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.

To check firewall settings:

  1. On the terminal server, click Start, and then click Control Panel.
  2. Click Security, click Windows Firewall, and then click Change Settings.
  3. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  4. In the Windows Firewall Settings dialog box, click the Exceptions tab.
  5. Under Program or port, ensure that the Terminal Services check box is selected. If the Terminal Services check box is not selected, select it, and then click OK.
  6. On the TS Session Broker server, click Start, and then click Control Panel.
  7. Click Security, and then click Windows Firewall.
  8. Click Change Settings, and then, in the Windows Firewall Settings dialog box, click the Exceptions tab.
  9. Under Program or port, ensure that the Session Broker Service check box is selected. If the Session Broker Service check box is not selected, select it, and then click OK.

Note:  To view more detailed information about Windows Firewall settings, use the Windows Firewall with Advanced Security snap-in.

Try to join the terminal server to a farm in TS Session Broker again

To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.

To join the terminal server to a farm in TS Session Broker:

  1. On the terminal server, open Terminal Services Configuration. To open Terminal Services Configuration, click Start, point to Administrative Tools, point to Terminal Services, and then click Terminal Services Configuration.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  3. Under TS Session Broker, double-click Member of farm in TS Session Broker.
  4. On the TS Session Broker tab, do the following:
    • Under TS Session Broker server name or IP address, ensure that the computer name or IP address of the TS Session Broker server is correctly entered.
    • Under Farm name in TS Session Broker, ensure that the name of the farm to join is correctly entered.
  5. Click OK to close the Properties dialog box.

If the problem persists, restart the Terminal Services Session Broker service on the TS Session Broker server and then try to join the terminal server to a farm in TS Session Broker again.

Restart the Terminal Services Session Broker service on the TS Session Broker server

To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.

To restart the service:

  1. On the TS Session Broker server, open the Services snap-in. To open the Services snap-in, click Start, point to Administrative Tools, and then click Services.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  3. In the Services pane, right-click Terminal Services Session Broker, and then click Properties.
  4. On the General tab, ensure that Startup type is set to Automatic. If it is not, click Automatic, and then click OK.
  5. Right-click Terminal Services Session Broker, and then click Restart.
  6. Confirm that the Status column for the Terminal Services Session Broker service displays Started.

Try to join the terminal server to a farm in TS Session Broker again. To perform this task, refer to the previous section.

If the problem still persists, restart the terminal server and then try to join the terminal server to a farm in TS Session Broker again.

Verify

To verify that the terminal server has successfully joined a farm in TS Session Broker, use either of the following methods:

Method one

To perform this procedure, you must have membership in the local Administrators group, or you must have been delegated the appropriate authority.

  1. On the terminal server, open Event Viewer. To open Event Viewer, click Start, point to Administrative Tools, and then click Event Viewer.
  2. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  3. In the left pane, expand Windows Logs, and then click System.
  4. Look for an event with a Source of TerminalServices-SessionBroker-Client and an Event ID of 1005. This event indicates that the terminal server has successfully joined a farm in TS Session Broker.

Method two

  1. On the terminal server that has been joined to a farm in TS Session Broker, start a new Terminal Services session.
  2. After the session is established, disconnect the session.
  3. On a different terminal server, but one that is also a member of the same farm in TS Session Broker, try to reconnect to your existing session. If you are able to reconnect to the existing session, the terminal server is successfully joined to a farm in TS Session Broker.

Joining TS Session Broker

Terminal Services