This year is coming to its end very soon and as so its time to say goodbye to some old stuff.
People that work with me know that I like to upgrade to new versions of SCOM by creating separate environments and test runs kill the old version. In the process of migration, you come to a point that agent can talk to the old version of Management Group or even two MGs.
Now it’s time to remove loose ends and use a very very useful management pack that wrote Jimmy Harper
Use the management pack in the link and add it to your new SCOM environment.
When you add it you will get a folder “Agent Management Groups” with a state view that will show you all of the agents in the system and the MGs connected.
When you see old management groups on the list just select the agent and start the Remove a Management Group task, enter the old MG name and uvula.
If you want to make it on your own, create a new task on the agents with the next VB code:
Set objMSConfig = CreateObject(“AgentConfigManager.MgmtSvcCfg”)
Call objMSConfig.RemoveManagementGroup (“Management Group Name to Remove”)
Restart the agents after the change (you can use Reload configuration task), That’s it