Win32_SessionDirectorySession class

Provides properties for viewing the properties of a Remote Desktop Connection Broker (RD Connection Broker) session.

Note

In Windows Server 2008 R2, the name of Terminal Services Session Broker (TS Session Broker) was changed to RD Connection Broker. These properties apply to all supported operating systems unless otherwise noted.

Syntax

[dynamic, provider("Win32_WIN32_SESSIONDIRECTORYSESSION_Prov"), AMENDMENT]
class Win32_SessionDirectorySession
{
  string   ServerName;
  uint32   SessionID;
  string   UserName;
  string   DomainName;
  string   ServerIPAddress;
  uint32   TSProtocol;
  string   ApplicationType;
  uint32   ResolutionWidth;
  uint32   ResolutionHeight;
  uint32   ColorDepth;
  DateTime CreateTime;
  DateTime DisconnectTime;
  uint32   SessionState;
};

Members

The Win32_SessionDirectorySession class has these types of members:

Properties

The Win32_SessionDirectorySession class has these properties.

ApplicationType

Data type: string

Access type: Read-only

Application started with this session. This is the same as the StartProgram property of IMsTscSecuredSettings.

ColorDepth

Data type: uint32

Access type: Read-only

Color depth of the session, measured in bits per pixel.

CreateTime

Data type: DateTime

Access type: Read-only

Date and time the session was created. This value is not reset when a session is disconnected and reconnected.

DisconnectTime

Data type: DateTime

Access type: Read-only

Date and time the session was disconnected (if applicable).

DomainName

Data type: string

Access type: Read-only

Domain name of the user logged on to this session.

ResolutionHeight

Data type: uint32

Access type: Read-only

Height of the session, in pixels, for this session.

ResolutionWidth

Data type: uint32

Access type: Read-only

Width of the session, in pixels, for this session.

ServerIPAddress

Data type: string

Access type: Read-only

IP address of the RD Connection Broker server for this session.

ServerName

Data type: string

Access type: Read-only

Qualifiers: key

Name of the RD Connection Broker server for this session.

SessionID

Data type: uint32

Access type: Read-only

Qualifiers: key

Session ID for this session.

SessionState

Data type: uint32

Access type: Read-only

State of this session.

0

The session is active.

1

The session is disconnected.

TSProtocol

Data type: uint32

Access type: Read-only

Protocol for this session.

0

This session is running on a physical console.

1

A proprietary third-party protocol is used for this session.

2

Remote Desktop Protocol (RDP) is used for this session.

UserName

Data type: string

Access type: Read-only

User name of the user logged on to this session.

Remarks

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2
MOF
TssdWmi.mof
DLL
TssdWmi.dll

See also

Win32_SessionDirectoryCluster

Win32_SessionDirectoryServer