RunDetails Method
Returns the details, in XML format, of one of the management agent run history records that are stored on the server. For more information about the XML format of the return value, see <run-history>. To use this method, you must be logged on as a member of the MIISBrowse, MIISOperators, or MIISAdmins security group.
string RunDetails();
Parameters
None
Return Value
Returns a string that contains the details of a management agent run in an XML format.
Example
The following example shows how to use the Visual Basic Scripting Edition to get the run histories of all management agent 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 where RunStartTime <= '" & DeleteDate & "'")
WScript.Echo “<runs>”
For Each Run in Runs
WScript.Echo Run.RunDetails()
Next
WScript.Echo “</runs>”
Requirements
Product |
Forefront Identity Manager Synchronization Service 2010 |
MOF |
Mmswmi.mof |
See Also
Reference
MIIS_RunHistory Class
<run-history>