Export (0) Print
Expand All

Win32_ServerSession class

The Win32_ServerSessionWMI class represents the sessions that have been established with the local computer by users on a remote computer.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.

Syntax

class Win32_ServerSession : CIM_LogicalElement
{
  uint32   ActiveTime;
  string   Caption;
  string   ClientType;
  string   ComputerName;
  string   Description;
  uint32   IdleTime;
  datetime InstallDate;
  string   Name;
  uint32   ResourcesOpened;
  uint32   SessionType;
  string   Status;
  string   TransportName;
  string   UserName;
};

Members

The Win32_ServerSession class has these types of members:

Properties

The Win32_ServerSession class has these properties.

ActiveTime
Data type: uint32
Access type: Read-only
Qualifiers: Units (Seconds)

Number of seconds since this session was established.

Caption
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)

Short description of the object. This property is inherited from CIM_ManagedSystemElement.

ClientType
Data type: string
Access type: Read/write

Type of the connected client.

ComputerName
Data type: string
Access type: Read-only
Qualifiers: Key

Name of the computer from which the session is established.

Description
Data type: string
Access type: Read-only

Comment that describes the link. This property is inherited from CIM_ManagedSystemElement.

IdleTime
Data type: uint32
Access type: Read-only
Qualifiers: Units (Seconds)

Number of seconds that the session has been idle.

InstallDate
Data type: datetime
Access type: Read-only

Date and time the object was installed. This property does not need a value to indicate that the object is installed. This property is inherited from CIM_ManagedSystemElement.

Name
Data type: string
Access type: Read-only

Label by which the object is known. When subclassed, the property can be overridden to be a key property. This property is inherited from CIM_ManagedSystemElement.

ResourcesOpened
Data type: uint32
Access type: Read/write

Number of files, devices, and pipes opened during this session.

SessionType
Data type: uint32
Access type: Read/write

Method of opening the session.

Possible values:

ValueMeaning
0

Guest

1

NoEncryption

2

Other

 

Status
Data type: string
Access type: Read-only
Qualifiers: MaxLen (10)

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "Error", "Starting", "Stopping", and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither "OK" nor in one of the other states. This property is inherited from CIM_ManagedSystemElement.

The values are:

"OK"
"Error"
"Degraded"
"Unknown"
"Pred Fail"
"Starting"
"Stopping"
"Service"
"Stressed"
"Nonrecover"
"NoContact"
"LostComm"
TransportName
Data type: string
Access type: Read/write

Name of the transport that the client is using to communicate with the server.

UserName
Data type: string
Access type: Read/write
Qualifiers: Key

Name of the user that established the session.

Remarks

The Win32_ServerSession class is derived from CIM_LogicalElement.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

Wmipsess.mof

DLL

Wmipsess.dll

See also

Operating System Classes

 

 

Show:
© 2014 Microsoft