Partager via


RunDetails Method of the MIIS_ManagementAgent Class

The RunDetails method returns the details of the last management agent run in an XML format. For more information about the run details XML schema, see <run-history>. To use this method, you must be logged on as a member of the MIISBrowse, MIISOperators, or MIISAdmins security group.

Syntax

string RunDetails();

Parameters

This method has no parameters.

Return Value

Returns either a string in XML format that contains the details of the last management agent run or one of the values listed in Return Strings. If you run this method after creating a new management agent, an empty <run-history> element is returned

Remarks

Use this method to find the details of a management agent run prior to archiving the run.

Examples

The following example shows you how to use Visual Basic Scripting Edition (VBScript) to get the details of the last management agent run:

Option Explicit

On Error Resume Next

Dim Service           
Dim ManagementAgent
Dim Status

Set Service = GetObject("winmgmts:root\MicrosoftIdentityIntegrationServer")
Set ManagementAgent = Service.Get("MIIS_ManagementAgent.Name='Fabrikam HR MA'")
WScript.Echo "Run Status: " & ManagementAgent.Execute("Full Import")

' Shows the details of the current management agent run.
WScript.Echo "Run Details"
WScript.Echo ManagementAgent.RunDetails()

Sub ErrorHandler (ErrorMessage)
  WScript.Echo ErrorMessage
  WScript.Quit(1)
End Sub

Requirements

Product ILM 2007 FP1
MOF Mmswmi.mof

See Also

MIIS_ManagementAgent
Return Strings
<run-history>

Send comments about this topic to Microsoft

Build date: 2/16/2009