ManagementServer.UninstallAgents Method (IList<AgentManagedComputer>, UninstallAgentConfiguration)
Applies To: Operations Manager for System Center 2012
Removes agents from a specified collection of agent-managed computers.
Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)
Syntax
public AgentTaskResult UninstallAgents(
IList<AgentManagedComputer> agentManagedComputer,
UninstallAgentConfiguration uninstallAgentConfiguration
)
public:
AgentTaskResult^ UninstallAgents(
IList<AgentManagedComputer^>^ agentManagedComputer,
UninstallAgentConfiguration^ uninstallAgentConfiguration
)
member UninstallAgents :
agentManagedComputer:IList<AgentManagedComputer> *
uninstallAgentConfiguration:UninstallAgentConfiguration -> AgentTaskResult
Public Function UninstallAgents (
agentManagedComputer As IList(Of AgentManagedComputer),
uninstallAgentConfiguration As UninstallAgentConfiguration
) As AgentTaskResult
Parameters
agentManagedComputer
Type: System.Collections.Generic.IList<AgentManagedComputer>The agent-managed computers on which to uninstall agents.
uninstallAgentConfiguration
Type: Microsoft.EnterpriseManagement.Administration.UninstallAgentConfigurationInformation used to configure the agent uninstalls.
Return Value
Type: Microsoft.EnterpriseManagement.Administration.AgentTaskResult
Returns an AgentTaskResult object that contains the results of the uninstall operation.
See Also
ManagementServer Class
Microsoft.EnterpriseManagement.Administration Namespace
Return to top