Today at a customer of mine i started the Operations Manager Shell on the RMS of Management Group 1. The environment excists of two Management Groups.
At the prompt I saw the PS Monitoring pointed to mgmtgrp2 instead of mgmtgrp 1!
It took me some time to change it back to the mgmtgrp and RMS to run the commands I wanted to.
Thnks to Scott Moss here is how to do this:
http://myitforum.com/cs2/blogs/smoss/archive/2009/02/26/scom-cmdlet-new-managementgroupconnection.aspx
The new-managementgroupconnection mgmtgrpname command is used first to connect to the right mgmtgrp. Then use the set-location monitoring:\fqdn_of_RMS command to change location to the right RMS.
Bastiaan van Onselen