3.4 SessionsLogoff

This Knowledge Script terminates a Windows Terminal Server session. You can specify the sessions to log off by session name or session ID. If the Knowledge Script fails, an event is raised.

3.4.1 Resource Objects

WTS Sessions

3.4.2 Default Schedule

The default interval is Run once.

3.4.3 Setting Parameter Values

Set the following parameters as needed:

Description

How to Set It

Session Name or Session ID

Specify a list of sessions you want to terminate, separated by commas with no spaces. Type an asterisk (*) to terminate all sessions. Specify sessions by session name or session ID number. For example:

RDP-TCP#8,RDP-TCP#9,4.

The default is blank.

Raise event if a session cannot be logged off?

Set to y to raise an event if the operation fails for any reason. The default is y.

Collect data for sessions logged off?

Set to y to collect data for charts and reports. If set to y, the script returns the number of sessions terminated. The default is n.

Event severity when a session cannot be logged off?

Set the event severity level, from 1 to 40, to indicate the importance of the event in which a session cannot be logged off. The default severity level is 5.