Share via


RunStatus Method

Returns the status of the last management agent run. To use this method, you must be logged on as a member of the MIISBrowse, MIISOperators, or MIISAdmins security group.

mof
string RunStatus();

Parameters

None

Name : RunStatus

Return Value

string

Returns a string that contains either the status of the last management agent 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 idle, but at least one run profile has been executed, the return value can be one of the values that are listed in WMI Provider Return Strings.

If the management agent is running, the return value is the following value.

Name Description

in-progress

The management agent run is in progress.

Example

The example in Methods shows how to use Microsoft Visual Basic Scripting Edition (VBScript) to get the status 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