Partager via


RunEndTime Method

Returns the date and time, in Coordinated Universal Time (UTC, also known as Greenwich Mean Time), when the management agent ended a run. To determine the local time of when 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.

mof
string RunEndTime();

Parameters

None

Name : RunEndTime

Return Value

string

Returns a string that contains either the date and time (in UTC) of when the management agent ended a run or one of the values that are listed in WMI Provider Return Strings.

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

If the management agent is running, the return value is a string that has the value of “in-progress”.

Remarks

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.

Code Example

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

Requirements

Product

Forefront Identity Manager Synchronization Service 2010

MOF

Mmswmi.mof

See Also

Reference

MIIS_ManagementAgent Class
WMI Provider Return Strings

Concepts

WMI Provider Reference
Methods