Export (0) Print
Expand All
Expand Minimize

Win32_SessionProcess class

The Win32_SessionProcess association WMI class represents an association between a logon session and the processes associated with that session.

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

[Provider("CIMWin32")]class Win32_SessionProcess : Win32_SessionResource
{
  Win32_LogonSession REF Antecedent;
  Win32_Process      REF Dependent;
};

Members

The Win32_SessionProcess class has these types of members:

Properties

The Win32_SessionProcess class has these properties.

Antecedent
Data type: Win32_LogonSession
Access type: Read-only
Qualifiers: Key

Reference to the instance that represents the session related to the process. This property is inherited from CIM_Dependency.

Dependent
Data type: Win32_Process
Access type: Read-only
Qualifiers: Key

Reference to the instance that represents the process associated with the session. This property is inherited from CIM_Dependency.

Remarks

On Windows Server 2003, Win32_SessionProcess returns only the current user session processes. You cannot call the class remotely: Win32_SessionProcess will not return the logged on user, but instead will return the calling user. (This is standard WMI behavior). When run as an admin this code will also show certain system processes associated with loginid=999. When run remotely the class will return only 999 and the current user session processes.

On Windows Vista and later, Win32_SessionProcess returns all session for the administrator when logged in elevated or when run remotely. This is an extension to the behavior of the class.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Operating System Classes

 

 

Show:
© 2014 Microsoft