Skip to content

Determine SCOM agent management groups

Featured Replies

Hey guys,

 

Quick question in regards to agent management groups. We had to setup up a side-by-side install for a bit to migrate our SCOM 07 environment over to 2012. We did this because we did not want to migrate any of the current data.

 

The issue I am having now is that I need to remove the 07 management group from the agents that have been moved over to SCOM 12. I have a .vbs script that will do this and have already run it. Now I need to run back through my list of servers and check that they are only listing one management group, the 2012 one.

 

Is there a scriptable way of doing this? I haven't found much in regards to it, and didn't have much luck in the SCOM management shell.

 

Any help is much appreciated!

  • 2 weeks later...

I'm not really experienced in writing scripts, but maybe use the "Get-SCOMAgent" command.

 

Then create a loop to loop through the list of servers and include something like output the Agent's management group.

 

Maybe something like this:

Get-SCOMAgent [-ManagementServer] <ManagementServer> [-ComputerName <String[]>

 

Run that on each Management Server (2007 and 2012), and then cross-compare the list.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.