Displaying Data Prioritization
Printing and file transfer traffic are considered as virtual channel
traffic. If such virtual channel traffic takes priority over the
terminal service traffic such as display, keyboard, and mouse, it may
adversely affect the performance as virtual channel traffic consumes a
lot of bandwidth. Display and user input data is allocated 70 percent
of the bandwidth in comparison to the rest of the traffic including
clipboard, file, and print jobs, which get 30 percent of the bandwidth.
You
can make some adjustments in the registry to control the allocation of
bandwidth and ensure the display data gets the priority.
The registry keys under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermDD (see Figure 1) need to be created and configured to control the prioritization. The parameters are:
Flow Control Disable
Flow Control Display Bandwidth
Flow Control Channel Bandwidth
Flow Control Charge Post Compression
You
may have to create the keys if they do not exist in your registry.
Create DWORD value keys (without spaces between the words) and assign
the following values:
FlowControlDisable
To disable display data prioritization set to 1. All requests are
handled on a First-In-First-Out (FIFO) basis. The default is 0.
FlowControlDisplayBandwidth
This is to control the relative bandwidth priority for display and
input data. The default value is 70. The maximum value is 255.
FlowControlChannelBandwidth
This is to control the relative bandwidth priority for other virtual
channels such as clipboard, file transfers, or print jobs). The default
value is 30. The maximum value is 255.
FlowControlChargePostCompression
This is to control bandwidth allocation based on pre- and
post-compression bytes. The default value is 0. This means the
calculation will be based on pre-compression bytes.
Restart the terminal server for the registry changes to take effect.
Logging Users Off
Terminal
Services Manager allows you to log off a user from a terminal service
session. To do this, right-click on the user and then click Log Off on the Users tab (see Figure 2).
If you want to log off another user from a session, Full control
permission is required. Ensure you send a message before you log off
the user. This will prevent a loss of data while the user’s session is
active.
Disconnecting Sessions
Terminal
Services Manager allows you to disconnect a user from a terminal
service session. To do so, right-click on the user session and then
click Disconnect on the Users
tab. Similar to logging of another user, you need Full Control
permission or Disconnect permission (Special Access) to disconnect a
user or session. Figure 9.54 shows the options available when you right-click on a user name.
Resetting the Terminal Services
Terminal Services Manager allows you to reset a user session. To do so, right-click on the user session and then click Reset.
If you reset a session without sending a warning message, it may result
in a loss of data. To reset another user’s session, Full Control access
permission is required. You should choose to reset a session only when
the session stops responding or when it encounters some error.
Resetting a listener session will result in resetting all the sessions
of a connection. Figure 9.54 shows the actions you can perform on a user session.