Compartilhar via


SMS_ClientAdvertisementStatus Server WMI Class

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The SMS_ClientAdvertisementStatus Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that records the last status message for every client and advertisement.

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

Class SMS_ClientAdvertisementStatus : SMS_BaseClass
{
      String AdvertisementID;
      UInt32 LastAcceptanceMessageID;
      String LastAcceptanceMessageIDName;
      UInt32 LastAcceptanceMessageIDSeverity;
      UInt32 LastAcceptanceState;
      String LastAcceptanceStateName;
      DateTime LastAcceptanceStatusTime;
      String LastExecutionContext;
      String LastExecutionResult;
      UInt32 LastState;
      String LastStateName;
      UInt32 LastStatusMessageID;
      String LastStatusMessageIDName;
      UInt32 LastStatusMessageIDSeverity;
      DateTime LastStatusTime;
      UInt32 ResourceID;
};

Methods

The SMS_ClientAdvertisementStatus class does not define any methods.

Properties

  • AdvertisementID
    Data type: String

    Access type: Read Only

    Qualifiers: [key, ResID(1702), ResDLL("SMS_RSTT.dll")]

    ID of the advertisement.

  • LastAcceptanceMessageID
    Data type: UInt32

    Access type: Read Only

    Qualifiers: [ResID(1704), ResDLL("SMS_RSTT.dll")]

    Last acceptance status message ID.

  • LastAcceptanceMessageIDName
    Data type: String

    Access type: Read Only

    Qualifiers: [ResID(1705), ResDLL("SMS_RSTT.dll")]

    Short description of the last acceptance status message.

  • LastAcceptanceMessageIDSeverity
    Data type: UInt32

    Access type: Read Only

    Qualifiers: [enumeration, ResIDValueLookup("Severity"), ResID(1703), ResDLL("SMS_RSTT.dll")]

    The severity of the last acceptance status message. Possible values are:

    0x40000000

    Error(3221225472)

    0x80000000

    Warning(2147483648)

    0xC0000000

    Informational(1073741824)

  • LastAcceptanceState
    Data type: UInt32

    Access type: Read Only

    Qualifiers: [ResID(1706),ResDLL("SMS_RSTT.dll")]

    Numeric category of the last acceptance status message.

  • LastAcceptanceStateName
    Data type: String

    Access type: Read Only

    Qualifiers: [ResID(1707),ResDLL("SMS_RSTT.dll")]

    Short description of the acceptance category.

  • LastAcceptanceStatusTime
    Data type: DateTime

    Access type: Read Only

    Qualifiers: [ResID(1708),ResDLL("SMS_RSTT.dll")]

    Date and time, in Universal Coordinated Time (UTC), when the last acceptance message was generated.

  • LastExecutionContext
    Data type: String

    Access type: Read Only

    Qualifiers: [ResID(1716),ResDLL("SMS_RSTT.dll")]

    User context (account) under which the program ran.

  • LastExecutionResult
    Data type: String

    Access type: Read Only

    Qualifiers: [ResID(1715), ResDLL("SMS_RSTT.dll")]

    Last string returned by a status Management Information Format (MIF) file (messages 10007 and 10009) or an error return code (10006).

  • LastState
    Data type: UInt32

    Access type: Read Only

    Qualifiers: [ResID(1712), ResDLL("SMS_RSTT.dll")]

    Numeric category of the last delivery status message.

  • LastStateName
    Data type: String

    Access type: Read Only

    Qualifiers: [ResID(1713), ResDLL("SMS_RSTT.dll")]

    Short description of the delivery category.

  • LastStatusMessageID
    Data type: UInt32

    Access type: Read Only

    Qualifiers: [ResID(1710),ResDLL("SMS_RSTT.dll")]

    Last delivery status message ID.

  • LastStatusMessageIDName
    Data type: String

    Access type: Read Only

    Qualifiers: [ResID(1711), ResDLL("SMS_RSTT.dll")]

    Short description of the last delivery status message.

  • LastStatusMessageIDSeverity
    Data type: UInt32

    Access type: Read Only

    Qualifiers: None

    [enumeration, ResIDValueLookup("Severity"), ResID(1709), ResDLL("SMS_RSTT.dll")]

    The severity of the last delivery status message. Possible values are listed for LastAcceptanceMessageIDSeverity.

  • LastStatusTime
    Data type: DateTime

    Access type: Read Only

    Qualifiers: [ResID(1714), ResDLL("SMS_RSTT.dll")]

    Date and time, in Universal Coordinated Time (UTC), when the last delivery message was generated.

  • ResourceID
    Data type: UInt32

    Access type: Read Only

    Qualifiers: [key, ResID(1701), ResDLL("SMS_RSTT.dll")]

    ID of the resource for the client.

Remarks

Class qualifiers for this class include:

  • Read (read-only)

For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

Using this class is the primary way to determine advertisement status. Even if a client is no longer in the collection targeted by an advertisement, an instance still appears in this class. It records the last status message for every advertisement for each client.

Advertisement status is divided into two stages, Acceptance and Delivery, which are recorded separately. Acceptance is whether the client has received the advertisement and whether the client decides that the advertisement applies to it. Delivery is the status of everything that comes after; that is, the actual download and execution of the advertisement. Advertisement status messages have been categorized into several groups that indicate similar status for the advertisement.

For more information about categories see SMS_AdvertisementStatusInformation Server WMI Class.

Requirements

Runtime Requirements

For more information, see Configuration Manager Server Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Server Development Requirements.

See Also

Concepts

Software Distribution Server WMI Classes
SMS_AdvertisementStatusInformation Server WMI Class