次の方法で共有


How to Add and Remove a Management Group

Applies To: System Center 2012 - Operations Manager

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

In Operations Manager, you can create a script that can add or remove a management group from the agent.

Example

The following is an example script, which is written in VBScript, that adds or removes a management group. For more information about parameters, return values, usage, and errors, see AddManagementGroup Method or RemoveManagementGroup Method.

Option Explicit

Dim objMSConfig
Set objMSConfig = CreateObject("AgentConfigManager.MgmtSvcCfg")

‘Add a management group
Call objMSConfig.AddManagementGroup ("MyManagementGroupToAdd", "company.sm.net",5723)

‘Remove a management group
Call objMSConfig.RemoveManagementGroup ("MyManagementGroupToRemove”)

See Also

Other Resources

Using the Operations Manager Agent Configuration Library
Operations Manager Agent Configuration Objects