Share via


Get Advertisement Status

Applies To: System Center 2012 - Orchestrator, System Center 2012 R2 Orchestrator, System Center 2012 SP1 - Orchestrator

The Get Advertisement Status activity is used to retrieve the status of an advertisement assigned to a computer to determine if a software deployment action has completed.

For the procedure to configure this object, see: Configuring the Get Advertisement Status Activity

Properties and Published Data

The following tables list the properties and published data for this activity.

When a computer name and advertisement ID are specified that do not result in any data returned (the advertisement is not assigned to or known by the computer), the published data will only contain the Computer Name and Connection properties.

Get Advertisement Status Properties

Element Description Valid Values Look up

Advertisement ID

The site-specific identifier for the advertisement

String

No

Computer Name

The name of the computer for which you want to retrieve the status of the assigned advertisement

String

No

Get Advertisement Published Data

Element Description Value Type

Advertisement ID

The site-specific identifier for the advertisement

String

Computer Name

The name of the computer for which the advertisement status applies

String

Connection

Specifies the connection to the Configuration Manager server

String

Last Acceptance Message ID

The identifier of the last acceptance status message

Integer

Last Acceptance Message ID Name

The short description of the last acceptance status message

String

Last Acceptance Message ID Severity

The severity of the last acceptance status message

Integer

1073741824 = Informational

2147483648 = Warning

3221225472 = Error

Last Acceptance State

The numeric category of the last acceptance status message

Integer

Last Acceptance State Name

The short description of the acceptance category

String

Last Acceptance Status Time

The date and time when the last acceptance message was generated

String (mm/dd/yyyy hh:mm:ss AM or PM, UCT)

Last Execution Context

The user account under which the program ran

String

Last Execution Result

The last string returned by a status file message or an error return code

String

Last State

The numeric category of the last delivery status message

Integer

Last State Name

Short description of the delivery category

String

Last Status Message ID

The identifier of the last delivery status message

Integer

Last Status Message ID Name

Short description of the last delivery status message

String

Last Status Message ID Severity

The severity of the last delivery status message

Integer

Last Status Time

The date and time when the last delivery message was generated

String (mm/dd/yyyy hh:mm:ss AM or PM, UCT)

Resource ID

The site-specific identifier of the target computer

Integer

Configuring the Get Advertisement Status Activity

To configure the Get Advertisement Status activity

  1. From the Activities pane, drag a Get Advertisement Status activity to the active runbook.

  2. Double-click the Get Advertisement Status activity icon. The Properties dialog box opens.

  3. Configuring the Details tab:

    1. In the Connection section, click the ellipsis button (...), and then select the Configuration Manager server connection that you want to use for this activity. Click OK.

    2. In the Fields section, enter a value for each of the required properties. If the property is Lookup-enabled, you can click the ellipsis (…) button next to the text box to browse for a value.

      You can also use published data to automatically populate the value of the property from the data output by a previous activity in the runbook.

      To use published data

      1. Right-click the property value box, click Subscribe, and then click Published Data.

      2. Click the Activity drop-down box and select the activity from which you want to obtain the data.

      3. To view additional data elements common across the runbook, select Show Common Published Data.

      4. Click the published data element you want to use, and then click OK.

        For a list of the data elements published by each activity, see the Published Data tables in the activity topic. For information about the Common Published Data items, see Published Data in the System Center Orchestrator 2012 Runbook Guide.

  4. For information about the settings on the General and Run Behavior tabs, see Common Configuration Instructions for all Activities.

  5. Click Finish.

Other Activities

The Integration Pack for System Center Configuration Manager contains the following additional activities.