Partager via


Stop Method of the MIIS_ManagementAgent Class

The Stop method stops the management agent specified in the Get method. This call is synchronous and blocks any other calls to the specified management agent until this method is completed. To use this method, you must be logged on as a member of the MIISOperators security group or the MIISAdmins security group.

Syntax

String Stop();

Parameters

This method has no parameters.

Return Value

The return value can be one of the following values or one of the values listed in Return Strings.

Return code Description

access-denied

The caller is not a member of the MIISAdmins or MIISOperators group on the server. Only members of those groups can run management agents.

ma-not-running

The management agent is idle. You cannot call the Stop method to stop a management agent that is idle.

success

The method stopped the management agent.

Remarks

This method only stops the specified management agent. Other running management agents are not affected by a call to this method. The time to stop a management agent depends upon the number of affected objects in the synchronization run.

Examples

The following example shows how you can use the Visual Basic Scripting Edition (VBScript) to stop a specified management agent. This example stops the full import run profile of the Fabrikam HR MA management agent.

Option Explicit
Dim Service
Dim ManagementAgent

Set Service = GetObject("winmgmts:\root\MicrosoftIdentityIntegrationServer")
Set ManagementAgent = Service.Get("MIIS_ManagementAgent.Name='" & "Fabrikam HR MA" & "'")
WScript.Echo "Stop returned '" & ManagementAgent.Stop() & "'"

Requirements

Product ILM 2007 FP1
MOF Mmswmi.mof

See Also

MIIS_ManagementAgent
Return Strings

Send comments about this topic to Microsoft

Build date: 2/16/2009