Installs agents to the specified computers using the specified configuration. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As ManagementServer
Dim customMonitoringObjects As IList(Of CustomMonitoringObject)
Dim installAgentConfiguration As InstallAgentConfiguration
Dim returnValue As AgentTaskResult

returnValue = instance.InstallAgents(customMonitoringObjects, installAgentConfiguration)

Syntax

Visual Basic
Public Function InstallAgents ( _
		customMonitoringObjects As IList(Of CustomMonitoringObject), _
		installAgentConfiguration As InstallAgentConfiguration _
) As AgentTaskResult
C#
public AgentTaskResult InstallAgents (
		IList<CustomMonitoringObject> customMonitoringObjects,
		InstallAgentConfiguration installAgentConfiguration
)
C++
public:
AgentTaskResult^ InstallAgents (
		IList<CustomMonitoringObject^>^ customMonitoringObjects, 
		InstallAgentConfiguration^ installAgentConfiguration
)
J#
public AgentTaskResult InstallAgents (
		IList<CustomMonitoringObject> customMonitoringObjects, 
		InstallAgentConfiguration installAgentConfiguration
)
JScript
public function InstallAgents (
		customMonitoringObjects : IList<CustomMonitoringObject>, 
		installAgentConfiguration : InstallAgentConfiguration
) : AgentTaskResult

Parameters

customMonitoringObjects

The computers on which to install agents.

installAgentConfiguration

Information that configures the agent installation.

Return Value

An AgentTaskResult that contains the result of the installation operation.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also