Properties

The MIIS_RunHistory class defines the following properties:

The following example shows how to use Visual Basic Scripting Edition (VBScript) to get the run history properties of all the runs stored on the server:

Option Explicit

Dim Service
Dim Runs
Dim Run

Set Service = GetObject("winmgmts:root\MicrosoftIdentityIntegrationServer")
Set Runs = Service.ExecQuery("Select * From MIIS_RunHistory")

For Each Run in Runs
    
    Dim Results
    
    Results = "Management Agent: " & Run.MaName & vblf
    Results = Results & "    Run Number            : " & Run.RunNumber & vblf
    Results = Results & "    Management Agent GUID : " & Run.MaGuid & vblf
    Results = Results & "    Key                   : " & Run.Key & vblf
    Results = Results & "    Run Status            : " & Run.RunStatus & vblf
    Results = Results & "    Run Start Time        : " & Run.RunStartTime & vblf
    Results = Results & "    Run End Time          : " & Run.RunEndTime & vblf
    Results = Results & "    Run Profile           : " & Run.RunProfile & vblf
    
    WScript.Echo Results
Next

Send comments about this topic to Microsoft

Build date: 2/16/2009