Microsoft Identity Integration Server 2003 Developer Reference

RunStartTime Method of the MIIS_ManagementAgent Class

The RunStartTime method returns the date and time, in Coordinated Universal Time (UTC), when the management agent started a run. The method returns a value only if the management agent is idle. For the local time the management agent ended the run, convert the return value to local time. To use this method, you must be logged on as a member of the MIISBrowse, MIISOperators, or MIISAdmins security group.
string RunStartTime();


This method has no parameters.

Return Values

Returns a string that contains either the date and time in Coordinated Universal Time (UTC) zone when the management agent started a run or one of the values listed in Return Strings.

If the management agent has never been run or the previous runs have been cleared, then the return value is an empty string.


The format of the return value is yyyy-MM-dd HH:mm:ss.fff.

Format specifier Description
yyyy Specifies the four-digit year
MM Specifies the two-digit month in the range of 1 to 12
dd Specifies the two-digit day of the month in the range of 1 to 31
HH Specifies the two-digit hour of the day in 24-hour format in the range of 0 to 23
mm Specifies the two-digit minute of the day in the range of 0 to 59
ss Specifies the two-digit second of the day in the range of 0 to 59
fff Specifies the three-digit fractions of a second in the range of 0 to 999

Example Code

The example given in the Methods topic shows you how to use Visual Basic Scripting Edition (VBScript) to get the start time of the last management agent run.


Server: Requires Microsoft Identity Integration Server 2003.
Header: Declared in mmswmi.mof.

See Also