Share via


Win32_ReliabilityRecords class

The Win32_ReliabilityRecords WMI class contains information from the Windows Event Log related to system reliability.

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

Syntax

[Provider("ReliabilityMetricsProvider"), Dynamic]
class Win32_ReliabilityRecords : Win32_Reliability
{
  string   ComputerName;
  uint32   EventIdentifier;
  string   InsertionStrings[];
  string   Logfile;
  string   Message;
  string   ProductName;
  uint32   RecordNumber;
  string   SourceName;
  datetime TimeGenerated;
  string   user;
};

Members

The Win32_ReliabilityRecords class has these types of members:

Methods

The Win32_ReliabilityRecords class has these methods.

Method Description
GetRecordCount Retrieves the number of instances in the Win32_ReliabilityRecords class.

Properties

The Win32_ReliabilityRecords class has these properties.

ComputerName

Data type: string

Access type: Read-only

Specifies the name of the computer that generated this event.

EventIdentifier

Data type: uint32

Access type: Read-only

Specifies the identifier of the event. This value is specific to the source that generated the event log entry and is used, together with SourceName, to uniquely identify a Windows event type.

InsertionStrings

Data type: string array

Access type: Read-only

Lists the insertion strings that accompanied the report of the Windows event.

Logfile

Data type: string

Access type: Read-only

Qualifiers: Key, Dynamic

Specifies the name of Windows event log file. Together with the RecordNumber and TimeGenerated properties, this property is used to uniquely identify an instance of this class.

Message

Data type: string

Access type: Read-only

Specifies the event message as it appears in the event log. This is a standard message with zero or more insertion strings supplied by the source of the Windows event. The insertion strings are inserted into the standard message in a predefined format. If there are no insertion strings or there is a problem inserting the insertion strings, only the standard message will be present in this field.

ProductName

Data type: string

Access type: Read-only

Specifies the product name that is associated with the event if available. If the product name cannot be determined, this property is set to NULL.

RecordNumber

Data type: uint32

Access type: Read-only

Qualifiers: Key, Dynamic

Identifies the event within the Windows event log file. This value is specific to the log file and is used together with the log file name to uniquely identify an instance of this class.

SourceName

Data type: string

Access type: Read-only

Specifies the name of the source (application, service, driver, or subsystem) that generated the entry. It is used, together with the EventIdentifier property, to uniquely identify a Windows event type.

TimeGenerated

Data type: datetime

Access type: Read-only

Qualifiers: Key, Dynamic

Specifies the UTC time at which the source generated the event. Together with the LogFile and RecordNumber properties, this property is used to uniquely identify an instance of this class.

user

Data type: string

Access type: Read-only

Specifies the user name of the logged-on user when the event occurred. If the user name cannot be determined, this property is set to NULL.

Remarks

The Win32_ReliabilityRecords class is derived from Win32_Reliability. Additional details for a record in Win32_ReliabilityRecords might also be present in Win32_NTLogEvent if the record still exists. To access information from this WMI class, the group policy Configure Reliability WMI Providers must be enabled. On Windows client systems, the policy is enabled by default. On Windows server systems, the policy is disabled by default. Disabling the policy will clear existing data within one hour. The Win32_ReliabilityRecords class is not available on Itanium-based versions of the Windows operating system or on the Server Core installation option of Windows Server operating systems.

Examples

The following Windows PowerShell example displays the five most recent reliability records from the local computer.

get-wmiobject Win32_ReliabilityRecords -computername 127.0.0.1 -property Message | 
  select-object -first 5 Message | format-list *

The following Windows PowerShell example displays the number of each combination of the SourceName and EventIdentifier properties for all reliability records.

get-wmiobject Win32_ReliabilityRecords -property @("SourceName", "EventIdentifier") | 
  group-object -property SourceName,EventIdentifier -noelement | sort-object -descending Count | 
  select-object Count,Name | format-table *

Requirements

Minimum supported client
Windows 7
Minimum supported server
Windows Server 2008 R2
Namespace
Root\CIMV2
MOF
RacWmiProv.mof
DLL
RacWmiProv.dll

See also

Win32_ReliabilityStabilityMetrics

Operating System Classes

Win32_NTLogEvent