Finding Multihomed OpsMgr agents with PowerShell

This week I got some questions about Multihoming agents. As you know, a multihomed architecture is based on the concept of an agent reporting to two (or more) management groups. But first I wanted to know how I could see if an agent was a multihomed agent and I used PowerShell to look into the registry of an agent for the ManagementGroup information.

 

dir "HKLM:\SOFTWARE\Microsoft\Microsoft Operations Manager\3.0\Agent Management Groups\" ` | Format-Table @{Label="ManagementGroup";Expression={$_.PSChildName}} –aut

 

Result:

image

Is this case I used PowerShell Remoting to connect to another Agent in my OpsMgr demo environment to collect the Management Group information.

As you see I don’t have a multihomed agent in my demo environmentSmile

Tweet