How to do SCOM agent multihoming through script

Step by Step SCOM agent multihoming

 

You can create script based rule as below select Timed commands and click on execute a script and save in management pack

rule1

 

2. Give the rule name and select the target.

rule2

 

3. select the execute time as per your requirement.I have selected default and click next

rule3

4  Give the file name (ex multihoming.vbe) and paste the below script with update of you management group and management server and click create.

rule4

 

 

Option Explicit

Dim objMSConfig
Set objMSConfig = CreateObject(“AgentConfigManager.MgmtSvcCfg”)
Call objMSConfig.AddManagementGroup (“Your Management group name”, “Management server name”,5723)

5. It done now. Now you can login to any agent machine and check the new management group entry.

rule5

Now you can to pending management and approve the agent.

 

Advertisements