Partager via


RunNumber Method

A counter that returns the sequence number for the current run, which indicates the number of times all the run profiles in the management agent (MA) were run. The first run is numbered 1, the second run is numbered 2, and so on. If the MA has never been run, or if previous runs have been cleared, the value is an empty string. To use this method, you must be logged on as a member of the MIISBrowse, MIISOperators, or MIISAdmins security group.

mof
string RunNumber();

Parameters

None

Name : RunNumber

Return Value

string

Returns a string that contains either the number of times all the run profiles in the management agent were run or one of the values that are listed in WMI Provider Return Strings. If this method is called after a new management agent is created, or the previous management agent runs were cleared, the return value will be an empty string.

Code Example

The example in Methods shows how to use Microsoft Visual Basic Scripting Edition (VBScript) to get the number of times the management agent was 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