The MIIS_RunHistory Class defines the following properties:
- Key Property
- MaGuid Property
- MaName Property
- RunEndTime
Property
- RunNumber
Property
- RunProfile
Property
- RunStartTime
Property
- RunStatus
Property
The following example shows how to use Microsoft Visual Basic Scripting Edition (VBScript) to get the run history properties of all the runs stored on the server.
Visual Basic Script | Copy Code |
---|---|
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 |