The SMS_SystemConsoleUser class is a client Windows Management Instrumentation (WMI) class, in Configuration Manager, that defines usage data about users, based on the Windows security event log.

Note
For this class to gather usable data, the Auditing of Logon/Logoff policy must be turned on for each computer.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_SystemConsoleUser
{
	DateTime LastConsoleUse;
	UInt32 NumberOfConsoleLogons;
	String SystemConsoleUser;
	UInt32 TotalUserConsoleMinutes;
};

Methods

The SMS_SystemConsoleUser class does not define any methods.

Properties

LastConsoleUse


Data type: DateTimeAccess type: Read onlyQualifiers: NoneThe last date and time when the user logged off from the console.
NumberOfConsoleLogons


Data type: UInt32Access type: Read onlyQualifiers: NoneThe total number of logons recorded in the system security event log for the specific user.
SystemConsoleUser


Data type: StringAccess type: Read onlyQualifiers: [key]The user name for the user logged on to the console.
TotalUserConsoleMinutes


Data type: UInt32Access type: Read onlyQualifiers: NoneThe total number of console logon minutes recorded in the system security event log for the user.

Remarks

This class gathers information about a specific user from the system security event log by using logon and logoff events. When a logon event is found, the associated logon ID is used to search for a matching logoff event. If more than one logoff event is found for a specific logon, then the last logoff event is used to calculate the amount of time that the user was logged on. This is because it is possible to issue more than one logoff request before the system actually performs the logoff action. If a matching logoff event cannot be found, the next shutdown event or logon event is used in place of a logoff event. If none of these can be found, the latest entry in the security log is used.

Note
Only interactive logons are acknowledged by this class.

Some security logs can roll over frequently, or they can extend for several years. The time polled for this class is limited to the last 90 days.

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.