Freigeben über


RSOP_PolicySettingStatus class

The RSOP_PolicySettingStatus WMI class provides a link to an event in the event log. The specific event corresponds to an error that occurred while applying a specific policy setting. There can be zero or more instances of this class for each RSoP_PolicySetting class. This class was added for Windows XP.

The following syntax is simplified from MOF code and includes all inherited properties.

Syntax

[AMENDMENT]
class RSOP_PolicySettingStatus
{
  string   id;
  string   eventSource;
  string   eventLogName;
  uint32   eventID;
  datetime eventTime;
  uint32   errorCode;
  sint32   status = 0;
};

Members

The RSOP_PolicySettingStatus class has these types of members:

Properties

The RSOP_PolicySettingStatus class has these properties.

errorCode

Data type: uint32

Access type: Read-only

Qualifiers: DisplayName ("Error Code")

A system error code that indicates the reason for failure.

eventID

Data type: uint32

Access type: Read-only

Qualifiers: DisplayName ("Event ID")

A message number associated with the event.

eventLogName

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Event Log Name")

The type of log in which the event was generated; for example, the application log or the system log.

eventSource

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Event Source")

The name of the source that generated the event in the event log; for example, the Winlogon process.

eventTime

Data type: datetime

Access type: Read-only

Qualifiers: DisplayName ("Time")

The system time at which the event was logged.

id

Data type: string

Access type: Read-only

Qualifiers: key, DisplayName ("ID")

Unique identifier for objects of this class.

status

Data type: sint32

Access type: Read-only

Qualifiers: DisplayName ("Status")

This property can have one of the following values.

Unspecified (0)

Applied (1)

Ignored (2)

Failed (3)

SubsettingFailed (4)

Remarks

The RSoPSetPolicySettingStatus function creates an instance of RSOP_PolicySettingStatus and an instance of RSOP_PolicySettingLink. The function links (associates) RSOP_PolicySettingStatus to its RSOP_PolicySetting instance.

To unlink an RSOP_PolicySettingStatus instance from its RSOP_PolicySetting instance, you can call the RSoPResetPolicySettingStatus function.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\RSOP\Computer, Root\RSOP\User
MOF
Rsop.mof
DLL
GPSvc.dll

See also

Group Policy Overview

Group Policy RSoP WMI Classes

RSoP_PolicySetting

RSOP_PolicySettingLink