Win32_LoggedOnUser class

The Win32_LoggedOnUser association WMI class relates a session and a user account.

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

Syntax

[Dynamic, Provider("CIMWin32"), UUID("{8BB5B3EC-E1F7-4b39-942A-605D5F55789A}"), AMENDMENT]
class Win32_LoggedOnUser : CIM_Dependency
{
  Win32_LogonSession REF Dependent;
  Win32_Account      REF Antecedent;
};

Members

The Win32_LoggedOnUser class has these types of members:

Properties

The Win32_LoggedOnUser class has these properties.

Antecedent

Data type: Win32_Account

Access type: Read-only

Qualifiers: Override (Antecedent), key

A Win32_Account that describes the account used in the initiation of this session. The account could be either a user account or a system account.

Dependent

Data type: Win32_LogonSession

Access type: Read-only

Qualifiers: Override (Dependent), key

A Win32_LogonSession that describes the session that the account is currently using.

Remarks

The Win32_LoggedOnUser class is derived from CIM_Dependency.

Examples

The Get-LoggedOnUser function PowerShell sample gets the logged on users on a local or remote computer, with session information.

Requirements

Requirement Value
Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\CIMV2
MOF
CIMWin32.mof
DLL
CIMWin32.dll

See also

CIM_Dependency

Operating System Classes